Android - Sequential audio playback?
Tried both soundpool and mediaplayer but cant quite manage to get sound files to play back correctly in sequence without overlap.. Need to be able to playback three randomly selected audio开发者_如何学编程 files in sequence without overlap. Any examples of using soundpool to play back audio sequentially? would be very much appreciated.. seems like such a simple thing is overly complicated..
I would rather suggest use MediaPlayer
instead of using SoundPool
, since purpose of using SoundPool
is generally to play multiple files concurrently (which causes overlapping.)
Just use a MediaPlayer
object and apply the OnCompletionListener to it.
精彩评论