mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
fix audio switching issue
This commit is contained in:
parent
3c43f44119
commit
3123bb37e4
1 changed files with 5 additions and 0 deletions
|
@ -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<AudioClient>().data(), "start", Qt::QueuedConnection);
|
||||
} else {
|
||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop", Qt::QueuedConnection);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Application::updateWindowTitle() const {
|
||||
|
|
Loading…
Reference in a new issue