From 845b4712f0e4d7ca802f21fba1adae0b1d0712e7 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Mon, 2 Jul 2012 13:12:31 -0700 Subject: Use audio_channel_mask_t more consistently In AudioRecord::getMinFrameCount() and AudioSystem::getInputBufferSize(), input parameter is channel mask instead of channel count. Change-Id: I22a1c492113f3e689173c5ab97b2567cff3abe2b --- voip/jni/rtp/AudioGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'voip') diff --git a/voip/jni/rtp/AudioGroup.cpp b/voip/jni/rtp/AudioGroup.cpp index 673a650..1579e6a 100644 --- a/voip/jni/rtp/AudioGroup.cpp +++ b/voip/jni/rtp/AudioGroup.cpp @@ -790,7 +790,7 @@ bool AudioGroup::DeviceThread::threadLoop() if (AudioTrack::getMinFrameCount(&output, AUDIO_STREAM_VOICE_CALL, sampleRate) != NO_ERROR || output <= 0 || AudioRecord::getMinFrameCount(&input, sampleRate, - AUDIO_FORMAT_PCM_16_BIT, 1) != NO_ERROR || input <= 0) { + AUDIO_FORMAT_PCM_16_BIT, AUDIO_CHANNEL_IN_MONO) != NO_ERROR || input <= 0) { ALOGE("cannot compute frame count"); return false; } -- cgit v1.1