my eyes started bleeding when I saw this...

Review URL: http://webrtc-codereview.appspot.com/268005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@907 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
niklas.enbom@webrtc.org 2011-11-09 12:43:48 +00:00
parent 4d8cd9d055
commit f3c1b87f00

View File

@ -629,16 +629,16 @@ int VoEBaseImpl::Init(AudioDeviceModule* external_adm)
#endif
// Set number of channels
_audioDevicePtr->StereoPlayoutIsAvailable(&available);
if (_audioDevicePtr->SetStereoPlayout(available ? true : false) != 0)
if (_audioDevicePtr->SetStereoPlayout(available) != 0)
{
_engineStatistics.SetLastError(VE_SOUNDCARD_ERROR, kTraceWarning,
"Init() failed to set stereo playout mode");
"Init() failed to set mono/stereo playout mode");
}
_audioDevicePtr->StereoRecordingIsAvailable(&available);
if (_audioDevicePtr->SetStereoRecording(available ? true : false) != 0)
if (_audioDevicePtr->SetStereoRecording(available) != 0)
{
_engineStatistics.SetLastError(VE_SOUNDCARD_ERROR, kTraceWarning,
"Init() failed to set mono recording mode");
"Init() failed to set mono/stereo recording mode");
}
return _engineStatistics.SetInitialized();