mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-22 22:34:15 +02:00
Merge branch 'pushToTalk' of https://github.com/wayne-chen/hifi into pushToTalk
This commit is contained in:
commit
ae8018d242
1 changed files with 20 additions and 0 deletions
|
@ -231,6 +231,26 @@ void Audio::loadData() {
|
||||||
_pttHMD = _pttHMDSetting.get();
|
_pttHMD = _pttHMDSetting.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Audio::getPTTHMD() const {
|
||||||
|
return resultWithReadLock<bool>([&] {
|
||||||
|
return _pttHMD;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void Audio::saveData() {
|
||||||
|
_desktopMutedSetting.set(getMutedDesktop());
|
||||||
|
_hmdMutedSetting.set(getMutedHMD());
|
||||||
|
_pttDesktopSetting.set(getPTTDesktop());
|
||||||
|
_pttHMDSetting.set(getPTTHMD());
|
||||||
|
}
|
||||||
|
|
||||||
|
void Audio::loadData() {
|
||||||
|
_desktopMuted = _desktopMutedSetting.get();
|
||||||
|
_hmdMuted = _hmdMutedSetting.get();
|
||||||
|
_pttDesktop = _pttDesktopSetting.get();
|
||||||
|
_pttHMD = _pttHMDSetting.get();
|
||||||
|
}
|
||||||
|
|
||||||
bool Audio::noiseReductionEnabled() const {
|
bool Audio::noiseReductionEnabled() const {
|
||||||
return resultWithReadLock<bool>([&] {
|
return resultWithReadLock<bool>([&] {
|
||||||
return _enableNoiseReduction;
|
return _enableNoiseReduction;
|
||||||
|
|
Loading…
Reference in a new issue