mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 01:24:05 +02:00
Disabled the continuous polling for audio device changes on Windows.
It necessitated extra buffering to prevent periodic dropouts in the audio stream.
This commit is contained in:
parent
d9f12e44dc
commit
2326696d54
1 changed files with 2 additions and 2 deletions
|
@ -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<QString> inputDevices = getDeviceNames(QAudio::AudioInput);
|
||||
QVector<QString> outputDevices = getDeviceNames(QAudio::AudioOutput);
|
||||
|
|
Loading…
Reference in a new issue