diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-14 12:54:39 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-15 16:43:40 -0800 |
commit | e33054eb968cbf8ccaee1b0ff0301403902deed6 (patch) | |
tree | b91f7abd2927e25a4cb7c50a8ef197c643ca9db6 /media/libmedia/SoundPool.cpp | |
parent | 7d9c126be8dfe3016683eeb2b7a2d88ba5b24c0b (diff) | |
download | frameworks_av-e33054eb968cbf8ccaee1b0ff0301403902deed6.zip frameworks_av-e33054eb968cbf8ccaee1b0ff0301403902deed6.tar.gz frameworks_av-e33054eb968cbf8ccaee1b0ff0301403902deed6.tar.bz2 |
Use size_t for frame counts
Also fix typo: bufferCount should be frameCount.
Change-Id: Ibed539504db75ef99dc21c8ff1bf2987122063a5
Diffstat (limited to 'media/libmedia/SoundPool.cpp')
-rw-r--r-- | media/libmedia/SoundPool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/SoundPool.cpp b/media/libmedia/SoundPool.cpp index b321e92..204e0ce 100644 --- a/media/libmedia/SoundPool.cpp +++ b/media/libmedia/SoundPool.cpp @@ -568,7 +568,7 @@ void SoundChannel::play(const sp<Sample>& sample, int nextChannelID, float leftV } // initialize track - int afFrameCount; + size_t afFrameCount; uint32_t afSampleRate; audio_stream_type_t streamType = mSoundPool->streamType(); if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { |