Merge pull request #3390 from chansensturm/audio-windows

Fix for stereo/mono and echo local server regression
This commit is contained in:
Philip Rosedale 2014-09-10 16:40:51 -07:00
commit 07eba40e33

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;