summaryrefslogtreecommitdiffstats
path: root/include/media/AudioTrack.h
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-06-02 15:41:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-02 15:41:03 +0000
commit0eafa9d8ee4069aa709ff85ceffe94d12995956d (patch)
tree7579f186bd84573a34de8bf385040b3fd04a9d8c /include/media/AudioTrack.h
parent20d09f3d9a82dc4ce51824025ef7a465f62086d0 (diff)
parent9f9e21ed9a342e0ca945818bdc6c0c4fb3bfb9bd (diff)
downloadframeworks_av-0eafa9d8ee4069aa709ff85ceffe94d12995956d.zip
frameworks_av-0eafa9d8ee4069aa709ff85ceffe94d12995956d.tar.gz
frameworks_av-0eafa9d8ee4069aa709ff85ceffe94d12995956d.tar.bz2
Merge "Store server latency, sample rate, framecount information in AudioTrack" into mnc-dev
Diffstat (limited to 'include/media/AudioTrack.h')
-rw-r--r--include/media/AudioTrack.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index 54e86b9..3efa74c 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -801,6 +801,13 @@ protected:
size_t mReqFrameCount; // frame count to request the first or next time
// a new IAudioTrack is needed, non-decreasing
+ // The following AudioFlinger server-side values are cached in createAudioTrack_l().
+ // These values can be used for informational purposes until the track is invalidated,
+ // whereupon restoreTrack_l() calls createTrack_l() to update the values.
+ uint32_t mAfLatency; // AudioFlinger latency in ms
+ size_t mAfFrameCount; // AudioFlinger frame count
+ uint32_t mAfSampleRate; // AudioFlinger sample rate
+
// constant after constructor or set()
audio_format_t mFormat; // as requested by client, not forced to 16-bit
audio_stream_type_t mStreamType; // mStreamType == AUDIO_STREAM_DEFAULT implies