Properly zero out unmixed frames.

BUG=6770157

Review URL: https://webrtc-codereview.appspot.com/933037

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3248 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2012-12-07 19:37:16 +00:00
parent 0e739508e0
commit 3a5a8a8bcc

View File

@ -350,8 +350,8 @@ WebRtc_Word32 AudioConferenceMixerImpl::Process()
if(mixedAudio->samples_per_channel_ == 0)
{
// Nothing was mixed, set the audio samples to silence.
memset(mixedAudio->data_, 0, _sampleSize);
mixedAudio->samples_per_channel_ = _sampleSize;
mixedAudio->Mute();
}
else
{