From baa1dbd14505b52324d2c0e6bdd6ac9478c509ad Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 23 Feb 2013 01:16:44 +0200 Subject: portaudio noclip flag --- sound_detector/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound_detector/main.cpp') 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 -- cgit v1.2.3