Merge "Properly reset the number of frames we think we've written to the audio sink"

This commit is contained in:
Andreas Huber
2011-08-26 11:35:33 -07:00
committed by Android (Google) Code Review

View File

@@ -180,6 +180,8 @@ void AudioPlayer::pause(bool playPendingSamples) {
} else {
mAudioTrack->stop();
}
mNumFramesPlayed = 0;
} else {
if (mAudioSink.get() != NULL) {
mAudioSink->pause();