diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-02-23 01:16:44 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-02-23 01:16:44 +0200 |
commit | baa1dbd14505b52324d2c0e6bdd6ac9478c509ad (patch) | |
tree | b22184f978a47b01987b30ef4683e0f963b6871d /sound_detector/main.cpp | |
parent | 062e947feaadd5754b33f2fc28b252ff050f038d (diff) |
portaudio noclip flag
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 |