diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-27 15:29:51 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-28 07:56:38 -0800 |
commit | bce50bfc3846ab008bafa75c5d3f29fd7b5395f7 (patch) | |
tree | ebefb9f660bf71aec96bd297e155d12c9d3588e8 /include/media | |
parent | 838b3d8bafa4a781e277870dee4e0390165cff52 (diff) | |
download | frameworks_av-bce50bfc3846ab008bafa75c5d3f29fd7b5395f7.zip frameworks_av-bce50bfc3846ab008bafa75c5d3f29fd7b5395f7.tar.gz frameworks_av-bce50bfc3846ab008bafa75c5d3f29fd7b5395f7.tar.bz2 |
Fix type of AudioTrack/AudioRecord parameter frameCount
It's size_t consistently
Change-Id: I29638ef59ac773218025f2403a3508a307b487e0
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/AudioRecord.h | 4 | ||||
-rw-r--r-- | include/media/AudioTrack.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 429fefc..b3c44a8 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -158,7 +158,7 @@ public: uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, - int frameCount = 0, + size_t frameCount = 0, callback_t cbf = NULL, void* user = NULL, uint32_t notificationFrames = 0, @@ -191,7 +191,7 @@ public: uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, - int frameCount = 0, + size_t frameCount = 0, callback_t cbf = NULL, void* user = NULL, uint32_t notificationFrames = 0, diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index b85e89a..7e9d557 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -182,7 +182,7 @@ public: uint32_t sampleRate, audio_format_t format, audio_channel_mask_t, - int frameCount = 0, + size_t frameCount = 0, audio_output_flags_t flags = AUDIO_OUTPUT_FLAG_NONE, callback_t cbf = NULL, void* user = NULL, @@ -245,7 +245,7 @@ public: uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, - int frameCount = 0, + size_t frameCount = 0, audio_output_flags_t flags = AUDIO_OUTPUT_FLAG_NONE, callback_t cbf = NULL, void* user = NULL, @@ -284,7 +284,7 @@ public: size_t frameSize() const { return mFrameSize; } uint32_t channelCount() const { return mChannelCount; } - uint32_t frameCount() const { return mFrameCount; } + size_t frameCount() const { return mFrameCount; } /* Return the static buffer specified in constructor or set(), or 0 for streaming mode */ sp<IMemory> sharedBuffer() const { return mSharedBuffer; } |