mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-09 06:39:30 +02:00
BUGZ-363: Remove 20dB output attenuation during PTT
This commit is contained in:
parent
b6cefd8dfb
commit
7c189d46f2
1 changed files with 0 additions and 2 deletions
|
@ -366,10 +366,8 @@ void Audio::onContextChanged() {
|
||||||
void Audio::handlePushedToTalk(bool enabled) {
|
void Audio::handlePushedToTalk(bool enabled) {
|
||||||
if (getPTT()) {
|
if (getPTT()) {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
DependencyManager::get<AudioClient>()->setOutputGain(0.1f); // duck the output by 20dB
|
|
||||||
setMuted(false);
|
setMuted(false);
|
||||||
} else {
|
} else {
|
||||||
DependencyManager::get<AudioClient>()->setOutputGain(1.0f);
|
|
||||||
setMuted(true);
|
setMuted(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue