allowing context change to change mute state

This commit is contained in:
Wayne Chen 2019-04-19 18:21:31 -07:00
parent 38115b0c09
commit 55f3c3a11a

View file

@ -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);
}