diff options
author | Eric Laurent <elaurent@google.com> | 2013-07-26 17:16:50 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-11-22 09:09:51 -0800 |
commit | 6f59db12a64f4496866952a251122ccb77a36c6b (patch) | |
tree | 29fcb69aa1f491974ec2b2ea5a01155b53940be5 /include/media/MediaPlayerInterface.h | |
parent | 23700debf767ef7fdfc30d96612771c3a03ad40d (diff) | |
download | frameworks_av-6f59db12a64f4496866952a251122ccb77a36c6b.zip frameworks_av-6f59db12a64f4496866952a251122ccb77a36c6b.tar.gz frameworks_av-6f59db12a64f4496866952a251122ccb77a36c6b.tar.bz2 |
update offloaded audio track sampling rate
AudioPlayer must read the sampling rate from offloaded audio sinks
whenever a new time position is computed as the decoder can update
the sampling rate on the fly.
Change-Id: I997e5248cfd4017aeceb4e11689324ded2a5bc88
Diffstat (limited to 'include/media/MediaPlayerInterface.h')
-rw-r--r-- | include/media/MediaPlayerInterface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h index cc244f0..26d8729 100644 --- a/include/media/MediaPlayerInterface.h +++ b/include/media/MediaPlayerInterface.h @@ -100,6 +100,7 @@ public: virtual status_t getFramesWritten(uint32_t *frameswritten) const = 0; virtual int getSessionId() const = 0; virtual audio_stream_type_t getAudioStreamType() const = 0; + virtual uint32_t getSampleRate() const = 0; // If no callback is specified, use the "write" API below to submit // audio data. |