summaryrefslogtreecommitdiffstats
path: root/include/media/AudioTrack.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-08 08:54:23 -0800
committerGlenn Kasten <gkasten@google.com>2014-01-10 10:53:22 -0800
commit396fabdb6efcdac5aea3d9f559d1beedf6a4cedc (patch)
tree28a5b52e5cb0632088d48cafff65cd271518b183 /include/media/AudioTrack.h
parent6340829ffb9ff7586ffb88a214f56340d4c70d60 (diff)
downloadframeworks_av-396fabdb6efcdac5aea3d9f559d1beedf6a4cedc.zip
frameworks_av-396fabdb6efcdac5aea3d9f559d1beedf6a4cedc.tar.gz
frameworks_av-396fabdb6efcdac5aea3d9f559d1beedf6a4cedc.tar.bz2
Document AudioTrack mFrameCount and mReqFrameCount better
and remove unnecessary initialization of mFrameCount in set(). Change-Id: I9effeb0a6dd035ca02fe77f6992c55d9515b4df6
Diffstat (limited to 'include/media/AudioTrack.h')
-rw-r--r--include/media/AudioTrack.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index 8afcc5d..476896f 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -664,9 +664,10 @@ protected:
float mVolume[2];
float mSendLevel;
mutable uint32_t mSampleRate; // mutable because getSampleRate() can update it.
- size_t mFrameCount; // corresponds to current IAudioTrack
- size_t mReqFrameCount; // frame count to request the next time a new
- // IAudioTrack is needed
+ size_t mFrameCount; // corresponds to current IAudioTrack, value is
+ // reported back by AudioFlinger to the client
+ size_t mReqFrameCount; // frame count to request the first or next time
+ // a new IAudioTrack is needed, non-decreasing
// constant after constructor or set()
audio_format_t mFormat; // as requested by client, not forced to 16-bit