Merge pull request from zfox23/removePTTAttenuation

BUGZ-363: Remove 20dB output attenuation during PTT
This commit is contained in:
Zach Fox 2019-06-27 13:45:49 -07:00 committed by GitHub
commit b95586239a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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