fix for recent stereo/mono and echo local server regression

This commit is contained in:
Craig Hansen-Sturm 2014-09-10 16:21:06 -07:00
parent cb8e832257
commit ca4d1375f5

View file

@ -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;