我需要播放SoundPool中的一些声音。有时,当他们应该播放的时候,只会有一个低沉的滴答声,而不是应该播放的声音。有时候他们玩得很好。下面是我在SoundPool中使用的代码: open class PingSoundPool(context: Context) {
.setUsage(AudioAttributes.
当我使用条形码扫描机架时,我实现了一个声池的单例类,同时继续扫描,自动关闭应用程序。错误是“无法从包中读取输入通道文件描述符”。mSPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {
public void onLoadComplete(SoundPoolsoundPool, int sampleId, int status) {
Logger.d("", "Su