I configure my SoundPool and load an audio resource like this in onCreate() :
soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 0); soundId = soundPool.load(this, R.raw.edible_underwear, 1);
And then I try to play this sound twice in onClick() , one slow mostly in the left speaker, and one fast mostly in the right speaker:
soundPool.play(soundId, 0.9f, 0.1f, 0, -1, 0.7f); soundPool.play(soundId, 0.1f, 0.1f, 0, -1, 1.5f);
No sound is heard. I looked for volumes, priorities and bids. Until now, to no avail. Am I missing something?
android audio soundpool
PeyloW Sep 08 '09 at 15:36 2009-09-08 15:36
source share