OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28169b1
)
AudioRecord: Fix minimum frame count calculation.
author
Eric Laurent
<elaurent@google.com>
Thu, 6 Sep 2012 18:52:36 +0000
(11:52 -0700)
committer
Eric Laurent
<elaurent@google.com>
Thu, 6 Sep 2012 18:52:36 +0000
(11:52 -0700)
AudioRecord::set() was calling getMinFrameCount() with
a channel count instead of a channel mask.
Change-Id: Iabace7686426430fd53deac0c71b0c36aa64171c
media/libmedia/AudioRecord.cpp
patch
|
blob
|
history
diff --git
a/media/libmedia/AudioRecord.cpp
b/media/libmedia/AudioRecord.cpp
index
5060525
..
8ea6306
100644
(file)
--- 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, channel
Count
);
+ status_t status = getMinFrameCount(&minFrameCount, sampleRate, format, channel
Mask
);
if (status != NO_ERROR) {
return status;
}