diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-27 15:30:41 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-28 07:56:34 -0800 |
commit | 838b3d8bafa4a781e277870dee4e0390165cff52 (patch) | |
tree | b70ff81e8ef1c9fcdc21aad7fd07dfe793ad6872 /media/libmedia/AudioRecord.cpp | |
parent | 484b4cd809aa46a54791d5c82a78d0f8aac895cf (diff) | |
download | frameworks_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/libmedia/AudioRecord.cpp')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 4438dfd..f372da6 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -76,7 +76,7 @@ AudioRecord::AudioRecord( int frameCount, callback_t cbf, void* user, - int notificationFrames, + uint32_t notificationFrames, int sessionId, transfer_type transferType, audio_input_flags_t flags __unused) @@ -117,14 +117,14 @@ status_t AudioRecord::set( int frameCountInt, callback_t cbf, void* user, - int notificationFrames, + uint32_t notificationFrames, bool threadCanCallJava, int sessionId, transfer_type transferType, audio_input_flags_t flags) { ALOGV("set(): inputSource %d, sampleRate %u, format %#x, channelMask %#x, frameCount %d, " - "notificationFrames %d, sessionId %d, transferType %d, flags %#x", + "notificationFrames %u, sessionId %d, transferType %d, flags %#x", inputSource, sampleRate, format, channelMask, frameCountInt, notificationFrames, sessionId, transferType, flags); @@ -803,7 +803,7 @@ nsecs_t AudioRecord::processAudioBuffer() } // Cache other fields that will be needed soon - size_t notificationFrames = mNotificationFramesAct; + uint32_t notificationFrames = mNotificationFramesAct; if (mRefreshRemaining) { mRefreshRemaining = false; mRemainingFrames = notificationFrames; |