diff options
author | Roxie Linden <roxie@lindenlab.com> | 2024-06-24 14:42:30 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2024-06-24 14:42:30 -0700 |
commit | 34a2fd525f5dde075bfc5615e6deb241ae61b94c (patch) | |
tree | 7696d3de36f30897bce1eb9ce6ae5e5bed95c76c /indra/llwebrtc/llwebrtc.h | |
parent | d8fdf5acf8f87bdcef591b4870d229ec34642aec (diff) |
[WebRTC] control microphone gain via custom audio processor.
Previously, there were two places audio gain could be controlled:
- the device manager
- the audio track
The device manager audio gain control sets the system gain for all applications,
not just the webrtc application.
The audio track gain happens well after the audio processing where we want it to happen.
So, gain control was added to the existing custom audio processor, which previously only
handled calculating and retrieving the audio levels.
After these changes, the microphone gain slider does impact the audio volume heard by peers.
Diffstat (limited to 'indra/llwebrtc/llwebrtc.h')
-rw-r--r-- | indra/llwebrtc/llwebrtc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llwebrtc/llwebrtc.h b/indra/llwebrtc/llwebrtc.h index ecbab81538..f447ea990a 100644 --- a/indra/llwebrtc/llwebrtc.h +++ b/indra/llwebrtc/llwebrtc.h @@ -145,6 +145,7 @@ class LLWebRTCDeviceInterface virtual void setTuningMode(bool enable) = 0; virtual float getTuningAudioLevel() = 0; // for use during tuning virtual float getPeerConnectionAudioLevel() = 0; // for use when not tuning + virtual void setPeerConnectionGain(float gain) = 0; }; // LLWebRTCAudioInterface provides the viewer with a way |