5

I am looking for a possibility to play audio on an Android device, that lets me both use the seekTo function(stepping in at a specified part of the audio file) and setPlaybackRate(speeding up/down the playback rate). However, taking a look at the media classes Android provides I could only find the following.

SoundPool: Lacks seekTo

AudioTrack: Lacks seekTo

MediaPlayer: Lacks setRate

Is there a way to play audio in Android without having to write too much code on my own that supplies both these functionalities?

Adrian Jandl
  • 2,985
  • 4
  • 23
  • 30

1 Answers1

0

I think that OpenSL has what you need, but I haven't used it personally. Maybe this here Android : How to change Playback Rate of music using OpenSL ES will help you.

Community
  • 1
  • 1