Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Prevent native mediaplayer from playing sound on playback speed change
Browse files Browse the repository at this point in the history
  • Loading branch information
mfietz committed Jan 24, 2016
1 parent 4e782cf commit a3d3967
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ public void setPlaybackSpeed(float f) {
}
PlaybackParams params = mp.getPlaybackParams();
params.setSpeed(f);
boolean isPaused = this.owningMediaPlayer.state == org.antennapod.audio.MediaPlayer.State.PAUSED;
mp.setPlaybackParams(params);
if(isPaused) {
mp.pause();
}
}

@Override
Expand Down

0 comments on commit a3d3967

Please sign in to comment.