BUGZ-363: Remove 20dB output attenuation during PTT

This commit is contained in:
Zach Fox 2019-06-27 13:26:40 -07:00
parent b6cefd8dfb
commit 7c189d46f2

View file

@ -366,10 +366,8 @@ void Audio::onContextChanged() {
void Audio::handlePushedToTalk(bool enabled) {
if (getPTT()) {
if (enabled) {
DependencyManager::get<AudioClient>()->setOutputGain(0.1f); // duck the output by 20dB
setMuted(false);
} else {
DependencyManager::get<AudioClient>()->setOutputGain(1.0f);
setMuted(true);
}
}