Merge pull request from danteruiz/fix-audio-switching

Respect changed audio settings when switch displays (Master)
This commit is contained in:
Jeff Clinton 2018-12-06 09:13:47 -08:00 committed by GitHub
commit e8c1c4a27b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6504,11 +6504,16 @@ void Application::resetSensors(bool andReload) {
}
void Application::hmdVisibleChanged(bool visible) {
// TODO
// calling start and stop will change audio input and ouput to default audio devices.
// we need to add a pause/unpause functionality to AudioClient for this to work properly
#if 0
if (visible) {
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "start", Qt::QueuedConnection);
} else {
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop", Qt::QueuedConnection);
}
#endif
}
void Application::updateWindowTitle() const {