soundpool - How to play multiple sounds simultaneously in Android? -


i've been trying make multiple sounds work simultaneously kept getting errors sample not ready , error creating audiotrack. though i've taken care of first error, other error persists.

i'm using 2 mp3 files, away above 5 mb(>4 minutes) , wondering if soundpool right way go it? can use media manager doesn't let me play multiple files simultaneously.

soundpool recommended <1mb sound clips, i'd use mediaplayer in case. can call following each sound , play simultaneously:

mediaplayer.create(youractivity.this, r.raw.your_sound).start(); 

or can create multiple mediaplayer objects , play sound on each, release() them.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -