summaryrefslogtreecommitdiff
path: root/sound_detector/main.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-23 01:16:44 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-23 01:16:44 +0200
commitbaa1dbd14505b52324d2c0e6bdd6ac9478c509ad (patch)
treeb22184f978a47b01987b30ef4683e0f963b6871d /sound_detector/main.cpp
parent062e947feaadd5754b33f2fc28b252ff050f038d (diff)
portaudio noclip flag
Diffstat (limited to 'sound_detector/main.cpp')
-rw-r--r--sound_detector/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound_detector/main.cpp b/sound_detector/main.cpp
index 67edc08..2983436 100644
--- a/sound_detector/main.cpp
+++ b/sound_detector/main.cpp
@@ -391,7 +391,7 @@ int main(int argc, char **argv)
params.suggestedLatency = info->defaultHighInputLatency;
if(debug)
printf("choosen device latency %f, choosen rate %f\n", info->defaultHighInputLatency, get_lowest_rate(&params));
- err = Pa_OpenStream(&stream, &params, NULL, get_lowest_rate(&params), paFramesPerBufferUnspecified, paNoFlag, stream_callback, NULL);
+ err = Pa_OpenStream(&stream, &params, NULL, get_lowest_rate(&params), paFramesPerBufferUnspecified, paClipOff, stream_callback, NULL);
if(err != paNoError)
printf("PortAudio error: %s\n", Pa_GetErrorText(err));
#ifndef WIN32