mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-01 08:20:00 +02:00
DEV-194: Iterate on PTT Ducking Slider design
This commit is contained in:
parent
0ef9110f2b
commit
73db19464f
2 changed files with 1 additions and 28 deletions
|
@ -222,33 +222,6 @@ Flickable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SimplifiedControls.Slider {
|
|
||||||
id: muteOutputSlider
|
|
||||||
enabled: AudioScriptingInterface.pushToTalkDesktop && attenuateOutputSwitch.checked
|
|
||||||
Layout.preferredWidth: parent.width
|
|
||||||
Layout.preferredHeight: 18
|
|
||||||
labelText: "Amount to reduce"
|
|
||||||
from: 0.0
|
|
||||||
to: 60.0
|
|
||||||
defaultValue: 20.0
|
|
||||||
stepSize: 5.0
|
|
||||||
value: -1 * AudioScriptingInterface.pushingToTalkOutputGainDesktop
|
|
||||||
live: true
|
|
||||||
function updatePushingToTalkOutputGainDesktop(newValue) {
|
|
||||||
if (AudioScriptingInterface.pushingToTalkOutputGainDesktop !== newValue) {
|
|
||||||
AudioScriptingInterface.pushingToTalkOutputGainDesktop = newValue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onValueChanged: {
|
|
||||||
updatePushingToTalkOutputGainDesktop(-1 * value);
|
|
||||||
}
|
|
||||||
onPressedChanged: {
|
|
||||||
if (!pressed) {
|
|
||||||
updatePushingToTalkOutputGainDesktop(-1 * value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -508,7 +508,7 @@ private:
|
||||||
float _inputLevel { 0.0f };
|
float _inputLevel { 0.0f };
|
||||||
float _localInjectorGain { 0.0f }; // in dB
|
float _localInjectorGain { 0.0f }; // in dB
|
||||||
float _systemInjectorGain { 0.0f }; // in dB
|
float _systemInjectorGain { 0.0f }; // in dB
|
||||||
float _pttOutputGainDesktop { -20.0f }; // in dB
|
float _pttOutputGainDesktop { 0.0f }; // in dB
|
||||||
bool _isClipping { false };
|
bool _isClipping { false };
|
||||||
bool _enableNoiseReduction { true }; // Match default value of AudioClient::_isNoiseGateEnabled.
|
bool _enableNoiseReduction { true }; // Match default value of AudioClient::_isNoiseGateEnabled.
|
||||||
bool _enableWarnWhenMuted { true };
|
bool _enableWarnWhenMuted { true };
|
||||||
|
|
Loading…
Reference in a new issue