summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-07-02 13:12:31 -0700
committerGlenn Kasten <gkasten@google.com>2012-07-03 08:40:46 -0700
commitf29ac10f0f3649c16a6e44bac961401cd3874fd4 (patch)
tree8fd13227e2dc0b60479be28fdaa711f66ba4a37c
parent0f2903af8e17af27f5cbb784842cca0e2f4fc4d5 (diff)
downloadvoip-f29ac10f0f3649c16a6e44bac961401cd3874fd4.tar.gz
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
-rw-r--r--jni/rtp/AudioGroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/jni/rtp/AudioGroup.cpp b/jni/rtp/AudioGroup.cpp
index 673a650..1579e6a 100644
--- a/jni/rtp/AudioGroup.cpp
+++ b/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;
}