This commit is contained in:
luiscuenca 2017-12-13 17:02:36 -07:00
parent e581c66b56
commit 483443d218
2 changed files with 1 additions and 4 deletions

View file

@ -680,9 +680,7 @@ void OffscreenQmlSurface::create() {
// Setup the update of the QML media components with the current audio output device
QObject::connect(&_audioOutputUpdateTimer, &QTimer::timeout, this, [this]() {
if (_currentAudioOutputDevice.size() > 0) {
QMutexLocker lock(&_audioHandlerMutex);
QString audioDeviceName = _currentAudioOutputDevice;
new AudioHandler(sharedFromThis(), audioDeviceName);
new AudioHandler(sharedFromThis(), _currentAudioOutputDevice);
}
});
int waitForAudioQmlMs = 200;

View file

@ -173,7 +173,6 @@ private:
uint64_t _lastRenderTime { 0 };
uvec2 _size;
QMutex _audioHandlerMutex;
QTimer _audioOutputUpdateTimer;
QString _currentAudioOutputDevice;