From 3123bb37e42e72d3bf887cac613f1eba603fc5c1 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Wed, 5 Dec 2018 10:34:47 -0800 Subject: [PATCH] fix audio switching issue --- interface/src/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index cb41a8c240..9f77c1d7fb 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -6638,11 +6638,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().data(), "start", Qt::QueuedConnection); } else { QMetaObject::invokeMethod(DependencyManager::get().data(), "stop", Qt::QueuedConnection); } +#endif } void Application::updateWindowTitle() const {