2
我試圖通過帶負載的ID在soundpool中打開一個mp3,也試圖通過文件描述符來做到這一點。爲什麼我的mp3會被壓縮?
我總是得到相同的異常:
This file can not be opened as a file descriptor; it is probably compressed
爲什麼我的MP3被壓縮?
這裏是的Soundpool代碼:
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);
}
那麼爲什麼它不與soundpool玩?我認爲soundpool除了mp3嗎? – panthro
發佈您的代碼。 –
已發佈代碼 – panthro