From 2326696d5430cdadfec6d85f575160a75c35415b Mon Sep 17 00:00:00 2001 From: Ken Cooke Date: Tue, 16 Aug 2016 16:53:51 -0700 Subject: [PATCH] Disabled the continuous polling for audio device changes on Windows. It necessitated extra buffering to prevent periodic dropouts in the audio stream. --- libraries/audio-client/src/AudioClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/audio-client/src/AudioClient.cpp b/libraries/audio-client/src/AudioClient.cpp index 398f4bb27c..0be91ab5fe 100644 --- a/libraries/audio-client/src/AudioClient.cpp +++ b/libraries/audio-client/src/AudioClient.cpp @@ -1362,8 +1362,8 @@ qint64 AudioClient::AudioOutputIODevice::readData(char * data, qint64 maxSize) { } void AudioClient::checkDevices() { -# ifdef Q_OS_LINUX - // on linux, this makes the audio stream hiccup +# if defined(Q_OS_LINUX) || defined (Q_OS_WIN) + // on Windows and Linux, this causes dropouts in the audio stream # else QVector inputDevices = getDeviceNames(QAudio::AudioInput); QVector outputDevices = getDeviceNames(QAudio::AudioOutput);