From bdf7ee5bab861fba289b4748db5ffd156fd3334e Mon Sep 17 00:00:00 2001 From: "turaj@webrtc.org" Date: Thu, 14 Jun 2012 23:46:35 +0000 Subject: [PATCH] This simple change should adress issue 471. Previously I uploaded patch 640007 to address issue 471. Today, while discussing that patch with Andrew, we noticed this patch should do the job. Leo is not here to verify it, but Andrew did some test to verify it. I'll ask Leo to do some testing. We don't want to abandon patch 640007 as it will save some complexity. Review URL: https://webrtc-codereview.appspot.com/648004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2405 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/voice_engine/main/source/output_mixer.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/voice_engine/main/source/output_mixer.cc b/src/voice_engine/main/source/output_mixer.cc index 11108c9382..c5ba0bfac8 100644 --- a/src/voice_engine/main/source/output_mixer.cc +++ b/src/voice_engine/main/source/output_mixer.cc @@ -586,7 +586,10 @@ OutputMixer::GetMixedAudio(const WebRtc_Word32 desiredFreqHz, { AudioFrameOperations::MonoToStereo(audioFrame); } - + else if ((channels == 1) && (audioFrame.num_channels_ == 2)) + { + AudioFrameOperations::StereoToMono(audioFrame); + } return 0; }