summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-10-07 12:21:33 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-07 12:21:33 -0700
commita458719bb6ebbcce99d4dba43af4bd51c5a06216 (patch)
tree6749676e32e62171ac2ae40dea62ad5ac2303981 /include
parentc5610a4c1308e2d52108131fbdef35e432a414b6 (diff)
parent56ee1080f004110bff622e5b60c243d9cabfe120 (diff)
downloadframeworks_base-a458719bb6ebbcce99d4dba43af4bd51c5a06216.zip
frameworks_base-a458719bb6ebbcce99d4dba43af4bd51c5a06216.tar.gz
frameworks_base-a458719bb6ebbcce99d4dba43af4bd51c5a06216.tar.bz2
am 56ee1080: 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 '56ee1080f004110bff622e5b60c243d9cabfe120' * commit '56ee1080f004110bff622e5b60c243d9cabfe120': 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 &);
};