sound1 = mSoundPool.load(source_path, 5);
hand1.postDelayed(new Runnable() {
public void run() {
// TODO Auto-generated method stub
if (sound1 != 0) {
loaded = true;
mSoundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {
@Override
public void onLoadComplete(SoundPool arg0, int arg1, int arg2) {
// TODO Auto-generated method stub
mSoundPool.play(sound1, 1, 1, 1, time - 1, 1);
System.out.println("playing=== a");
}
});
}
}
}, 21000);
问题是它没有播放音频文件。时间是来自编辑文本的价值 我正在研究android 2.2请帮忙