summaryrefslogtreecommitdiff
path: root/sound_detector/main.cpp
diff options
context:
space:
mode:
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