diff options
author | Andreas Huber <andih@google.com> | 2010-10-05 10:25:34 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-10-05 13:53:39 -0700 |
commit | c743f4506f88a14189449c719a6ec1cfe5f0f812 (patch) | |
tree | f69dfc65287acea092d8769ca3e6f907567a4b6b /include | |
parent | 78d15acfb20269ce263ce19514a2c0e7a98409e2 (diff) | |
download | frameworks_base-c743f4506f88a14189449c719a6ec1cfe5f0f812.zip frameworks_base-c743f4506f88a14189449c719a6ec1cfe5f0f812.tar.gz frameworks_base-c743f4506f88a14189449c719a6ec1cfe5f0f812.tar.bz2 |
Make sure to call AudioTrack::stop() instead of AudioTrack::pause() after submitting all samples to AudioTrack to make sure those remaining samples are actually played out.
Change-Id: Id574a0203efcb5e565f1b0fe77869fc33b9a9d56
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/AudioPlayer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/media/stagefright/AudioPlayer.h b/include/media/stagefright/AudioPlayer.h index ed2f7d7..37af032 100644 --- a/include/media/stagefright/AudioPlayer.h +++ b/include/media/stagefright/AudioPlayer.h @@ -49,11 +49,9 @@ public: status_t start(bool sourceAlreadyStarted = false); - void pause(); + void pause(bool playPendingSamples = false); void resume(); - void stop(); - // Returns the timestamp of the last buffer played (in us). int64_t getMediaTimeUs(); @@ -107,6 +105,8 @@ private: int64_t getRealTimeUsLocked() const; + void reset(); + AudioPlayer(const AudioPlayer &); AudioPlayer &operator=(const AudioPlayer &); }; |