diff options
author | Eric Laurent <elaurent@google.com> | 2012-09-06 11:52:36 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-09-06 11:52:36 -0700 |
commit | 6f744d75d3439f7984245e3c489cc7cf91cea41c (patch) | |
tree | a4e050390092ea08271e55d8178565be47c06ab7 /media/libmedia | |
parent | 0b73d4730202fcad53aefc4314a06e7b95f442f0 (diff) | |
download | frameworks_av-6f744d75d3439f7984245e3c489cc7cf91cea41c.zip frameworks_av-6f744d75d3439f7984245e3c489cc7cf91cea41c.tar.gz frameworks_av-6f744d75d3439f7984245e3c489cc7cf91cea41c.tar.bz2 |
AudioRecord: Fix minimum frame count calculation.
AudioRecord::set() was calling getMinFrameCount() with
a channel count instead of a channel mask.
Change-Id: Iabace7686426430fd53deac0c71b0c36aa64171c
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 5060525..8ea6306 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -177,7 +177,7 @@ status_t AudioRecord::set( // validate framecount int minFrameCount = 0; - status_t status = getMinFrameCount(&minFrameCount, sampleRate, format, channelCount); + status_t status = getMinFrameCount(&minFrameCount, sampleRate, format, channelMask); if (status != NO_ERROR) { return status; } |