summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-10-05 14:13:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-05 14:13:16 -0700
commit56ee1080f004110bff622e5b60c243d9cabfe120 (patch)
treeafd1e67174d27ee1c67e751004b1e05009cdbfa8 /include
parentcfc80bd5c1e4f0207357b288b1b7b8374a31ba70 (diff)
parent17bc4f65324a823598e7671256c815bf32ddcc95 (diff)
downloadframeworks_base-56ee1080f004110bff622e5b60c243d9cabfe120.zip
frameworks_base-56ee1080f004110bff622e5b60c243d9cabfe120.tar.gz
frameworks_base-56ee1080f004110bff622e5b60c243d9cabfe120.tar.bz2
am 17bc4f65: Merge "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." into gingerbread
Merge commit '17bc4f65324a823598e7671256c815bf32ddcc95' into gingerbread-plus-aosp * commit '17bc4f65324a823598e7671256c815bf32ddcc95': 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.
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/AudioPlayer.h6
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 &);
};