mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
allowing context change to change mute state
This commit is contained in:
parent
38115b0c09
commit
55f3c3a11a
1 changed files with 7 additions and 0 deletions
|
@ -351,6 +351,13 @@ void Audio::onContextChanged() {
|
|||
changed = true;
|
||||
}
|
||||
});
|
||||
if (_settingsLoaded) {
|
||||
if (isHMD) {
|
||||
setMuted(getMutedHMD());
|
||||
} else {
|
||||
setMuted(getMutedDesktop());
|
||||
}
|
||||
}
|
||||
if (changed) {
|
||||
emit contextChanged(isHMD ? Audio::HMD : Audio::DESKTOP);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue