Merge "Properly reset the number of frames we think we've written to the audio sink"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b59997f7ce
@@ -180,6 +180,8 @@ void AudioPlayer::pause(bool playPendingSamples) {
|
||||
} else {
|
||||
mAudioTrack->stop();
|
||||
}
|
||||
|
||||
mNumFramesPlayed = 0;
|
||||
} else {
|
||||
if (mAudioSink.get() != NULL) {
|
||||
mAudioSink->pause();
|
||||
|
||||
Reference in New Issue
Block a user