History

fix audio switching issue

Dante Ruiz committed 7 years ago

Commit 3123bb31 parent 3c43f441 file · +5 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -6638,11 +6638,16 @@ void Application::resetSensors(bool andReload) { · 6637 unmodified lines
6638}6638}
6639 6639
6640void Application::hmdVisibleChanged(bool visible) {6640void Application::hmdVisibleChanged(bool visible) {
6641 // TODO
6642 // calling start and stop will change audio input and ouput to default audio devices.
6643 // we need to add a pause/unpause functionality to AudioClient for this to work properly
6644#if 0
6641 if (visible) {6645 if (visible) {
6642 QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "start", Qt::QueuedConnection);6646 QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "start", Qt::QueuedConnection);
6643 } else {6647 } else {
6644 QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop", Qt::QueuedConnection);6648 QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop", Qt::QueuedConnection);
6645 }6649 }
6650#endif
6646}6651}
6647 6652
6648void Application::updateWindowTitle() const {6653void Application::updateWindowTitle() const {