试图通过装满负荷的id子在声音池中开标,还试图通过档案记录员这样做。
我总是有同样的例外:
This file can not be opened as a file descriptor; it is probably compressed
为什么要压缩我的话?
这里是健全的集合代码:
mySoundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);
try { mySoundPool.load(this, R.raw.drum, 1);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
Log.e(TAG, "", e);
}