summaryrefslogtreecommitdiffstats
path: root/media/libmedia/SoundPool.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-27 15:29:51 -0800
committerGlenn Kasten <gkasten@google.com>2014-02-28 07:56:38 -0800
commitbce50bfc3846ab008bafa75c5d3f29fd7b5395f7 (patch)
treeebefb9f660bf71aec96bd297e155d12c9d3588e8 /media/libmedia/SoundPool.cpp
parent838b3d8bafa4a781e277870dee4e0390165cff52 (diff)
downloadframeworks_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 'media/libmedia/SoundPool.cpp')
-rw-r--r--media/libmedia/SoundPool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/SoundPool.cpp b/media/libmedia/SoundPool.cpp
index 4885b4f..a55e09c 100644
--- a/media/libmedia/SoundPool.cpp
+++ b/media/libmedia/SoundPool.cpp
@@ -587,7 +587,7 @@ void SoundChannel::play(const sp<Sample>& sample, int nextChannelID, float leftV
uint32_t sampleRate = uint32_t(float(sample->sampleRate()) * rate + 0.5);
uint32_t totalFrames = (kDefaultBufferCount * afFrameCount * sampleRate) / afSampleRate;
uint32_t bufferFrames = (totalFrames + (kDefaultBufferCount - 1)) / kDefaultBufferCount;
- uint32_t frameCount = 0;
+ size_t frameCount = 0;
if (loop) {
frameCount = sample->size()/numChannels/