diff options
author | Roxanne Skelly <roxanne@roxiware.com> | 2024-06-25 09:37:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 09:37:22 -0700 |
commit | 370e6154c461ec95d3a2921885c461b76e789ec8 (patch) | |
tree | 664d384683e1f5fe6672b17fc50404cadaf1e8f6 /indra/llwebrtc/llwebrtc_impl.h | |
parent | 35148b8a84003ff4cdf291c8433264e532b00f68 (diff) | |
parent | 34a2fd525f5dde075bfc5615e6deb241ae61b94c (diff) |
Merge pull request #1837 from secondlife/roxie/webrtc-voice-gain
Diffstat (limited to 'indra/llwebrtc/llwebrtc_impl.h')
-rw-r--r-- | indra/llwebrtc/llwebrtc_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llwebrtc/llwebrtc_impl.h b/indra/llwebrtc/llwebrtc_impl.h index 448d36e3ea..6672f8ce90 100644 --- a/indra/llwebrtc/llwebrtc_impl.h +++ b/indra/llwebrtc/llwebrtc_impl.h @@ -121,6 +121,8 @@ class LLCustomProcessor : public webrtc::CustomProcessing float getMicrophoneEnergy() { return mMicrophoneEnergy; } + void setGain(float gain) { mGain = gain; } + protected: static const int NUM_PACKETS_TO_FILTER = 30; // 300 ms of smoothing int mSampleRateHz; @@ -128,6 +130,7 @@ class LLCustomProcessor : public webrtc::CustomProcessing float mSumVector[NUM_PACKETS_TO_FILTER]; float mMicrophoneEnergy; + float mGain; }; @@ -160,6 +163,8 @@ class LLWebRTCImpl : public LLWebRTCDeviceInterface, public webrtc::AudioDeviceS float getTuningAudioLevel() override; float getPeerConnectionAudioLevel() override; + void setPeerConnectionGain(float gain) override; + // // AudioDeviceSink // |