diff options
Diffstat (limited to 'sound_detector/main.cpp')
-rw-r--r-- | sound_detector/main.cpp | 2 |
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(¶ms)); - err = Pa_OpenStream(&stream, ¶ms, NULL, get_lowest_rate(¶ms), paFramesPerBufferUnspecified, paNoFlag, stream_callback, NULL); + err = Pa_OpenStream(&stream, ¶ms, NULL, get_lowest_rate(¶ms), paFramesPerBufferUnspecified, paClipOff, stream_callback, NULL); if(err != paNoError) printf("PortAudio error: %s\n", Pa_GetErrorText(err)); #ifndef WIN32 |