Wednesday, May 19, 2010

Re: [android-developers] Error playing multiple sounds

> 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?

Use SoundPool, as that is designed for playing multiple sounds at once.

--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate