mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 23:53:26 +02:00
fix for recent stereo/mono and echo local server regression
This commit is contained in:
parent
cb8e832257
commit
ca4d1375f5
1 changed files with 2 additions and 0 deletions
|
@ -644,6 +644,8 @@ void Audio::handleAudioInput() {
|
|||
_dcOffset = DC_OFFSET_AVERAGING * _dcOffset + (1.0f - DC_OFFSET_AVERAGING) * measuredDcOffset;
|
||||
}
|
||||
|
||||
_lastInputLoudness = fabs(loudness / NETWORK_BUFFER_LENGTH_SAMPLES_PER_CHANNEL);
|
||||
|
||||
// If Noise Gate is enabled, check and turn the gate on and off
|
||||
if (!_audioSourceInjectEnabled && _noiseGateEnabled) {
|
||||
float averageOfAllSampleFrames = 0.0f;
|
||||
|
|
Loading…
Reference in a new issue