【发布时间】:2011-05-31 05:25:38
【问题描述】:
我正在使用此代码从“res/raw”播放 .mp3 文件。问题是这是 1 秒的文件。我把 player.setLooping 设置为 True,但是随着文件的播放,重播声音需要时间。这似乎是声音的停顿。我想避免它。
我想要的是不间断地连续播放 1 秒长度的文件。
MyAppTesting.player = MediaPlayer.create ( getApplicationContext ( ) , R.raw.idle ) ;
MyAppTesting.player.setLooping ( true ) ;
MyAppTesting.player.start ( ) ;
【问题讨论】: