开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜