在加载新的声音文件之前释放 soundPool?

问题描述

想象一下我有这个:

soundPool.play(soundPool.load(this,R.raw.soundFile1,1),1,1);

但是现在如果我想播放我的 soundFile2,我应该先使用 soundPool.release() 吗?

soundPool.play(soundPool.load(this,1);
soundPool.release();
soundPool.play(soundPool.load(this,R.raw.soundFile2,1);

或者我可以在不调用 soundPool.release() 的情况下加载新的声音文件?像这样:

soundPool.play(soundPool.load(this,1);
soundPool.play(soundPool.load(this,1);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)