If you play more sounds at the same time i would recommend to use soundpool
I wrote here an class where you can add and play sounds hat the same time http://code.google.com/p/candroidengine/source/browse/trunk/src/at/bartinger/candroid/sound/SFXManager.java On 19 Mai, 14:50, REvolver <[email protected]> wrote: > HI, > > I'm playing some MediaPlayer instances at the same time (4 or 5) but > sometimes when I try to start a new media player it doesn't work and > an error is shown on the log: > > E/AudioFlinger( 1073): no more track names availlable > E/AudioTrack( 1073): AudioFlinger could not create track, status: -12 > E/AudioSink( 1073): Unable to create audio track > E/VorbisPlayer( 1073): mAudioSink open failed > > It also happens when there're only 3 or 2 MediaPlayer playing at the > same time. > What does it mean this error? > How can I workaround with it? > Actually checking the isPlaying() after the start() call does not seem > very helpful as every call returns true > > I've to say that every MediaPlayer is created once via > MediaPlayer.create. > > Thanks a lot! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

