android - How to Sync Sounds using SoundPool -


i have been trying few sounds play @ same time; i'm using shared instance of soundpool. 1, 2 or 3 sounds played @ exact same time no lag.

when calling soundpool.play(...) x number of times in succession, sounds played in order 1 might think. proper achieve can prepare of sounds played @ same time , play them one?

sudo code:

soundpool _soundpool = new soundpool(10, audiomanager.stream_music, 0);  _soundpool.load(_context, soundid1, 1); _soundpool.load(_context, soundid2, 1); _soundpool.load(_context, soundid3, 1);  _soundpool.play(soundid1, vol, vol, 1, 0, 1f); _soundpool.play(soundid2, vol, vol, 1, 0, 1f); _soundpool.play(soundid3, vol, vol, 1, 0, 1f); 

i done sound pool 1 sound @ time might you. android:sound pool , service

thank you


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -