summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/AudioSource.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-27 15:30:41 -0800
committerGlenn Kasten <gkasten@google.com>2014-02-28 07:56:34 -0800
commit838b3d8bafa4a781e277870dee4e0390165cff52 (patch)
treeb70ff81e8ef1c9fcdc21aad7fd07dfe793ad6872 /media/libstagefright/AudioSource.cpp
parent484b4cd809aa46a54791d5c82a78d0f8aac895cf (diff)
downloadframeworks_av-838b3d8bafa4a781e277870dee4e0390165cff52.zip
frameworks_av-838b3d8bafa4a781e277870dee4e0390165cff52.tar.gz
frameworks_av-838b3d8bafa4a781e277870dee4e0390165cff52.tar.bz2
Fix type of AudioTrack/AudioRecord parameter notificationFrames
It's uint32_t consistently Change-Id: If8298c7e9aeea2b951fe47b675adbdf48d104846
Diffstat (limited to 'media/libstagefright/AudioSource.cpp')
-rw-r--r--media/libstagefright/AudioSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/AudioSource.cpp b/media/libstagefright/AudioSource.cpp
index df7da0a..ee789bd 100644
--- a/media/libstagefright/AudioSource.cpp
+++ b/media/libstagefright/AudioSource.cpp
@@ -65,7 +65,7 @@ AudioSource::AudioSource(
if (status == OK) {
// make sure that the AudioRecord callback never returns more than the maximum
// buffer size
- int frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount;
+ uint32_t frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount;
// make sure that the AudioRecord total buffer size is large enough
size_t bufCount = 2;
@@ -79,7 +79,7 @@ AudioSource::AudioSource(
bufCount * frameCount,
AudioRecordCallbackFunction,
this,
- frameCount);
+ frameCount /*notificationFrames*/);
mInitCheck = mRecord->initCheck();
} else {
mInitCheck = status;