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
66386638 }
66396639
66406640 void 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
66416645 if (visible) {
66426646 QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "start", Qt::QueuedConnection);
66436647 } else {
66446648 QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop", Qt::QueuedConnection);
66456649 }
6650+#endif
66466651 }
66476652
66486653 void Application::updateWindowTitle() const {