From 1ab35797b16c6c1b6b4cf636b20756d0aeebc42a Mon Sep 17 00:00:00 2001 From: Ken Cooke Date: Thu, 25 Aug 2016 16:09:25 -0700 Subject: [PATCH] Drastically reduce the audio capture buffering on Windows. With device detection on another thread and WASAPI back-end, the large capture buffer (resulting from CALLBACK_ACCELERATOR_RATIO) is no longer needed. --- libraries/audio-client/src/AudioClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/audio-client/src/AudioClient.cpp b/libraries/audio-client/src/AudioClient.cpp index 089ef75095..f16b662428 100644 --- a/libraries/audio-client/src/AudioClient.cpp +++ b/libraries/audio-client/src/AudioClient.cpp @@ -1265,7 +1265,7 @@ int AudioClient::setOutputBufferSize(int numFrames, bool persist) { // proportional to the accelerator ratio. #ifdef Q_OS_WIN -const float AudioClient::CALLBACK_ACCELERATOR_RATIO = 0.1f; +const float AudioClient::CALLBACK_ACCELERATOR_RATIO = 1.0f; #endif #ifdef Q_OS_MAC