[android-developers] Android 2.2 MediaPlayer Woes
I have an app that uses multiple media players to play overlapping
sounds. Each time I play a new sound the following actions are
performed:
- reset
- setDataSource
- prepare
- setLooping
- setVolume
- start
Up until 2.2 everything worked fine, now the first media player sounds
fine, but when I start the second media player the sound is garbled
and I get the following messages in the console:
E/MediaPlayer( 449): error (1, -2147483648)
E/MediaPlayer( 449): Error (1,-2147483648)
and later
E/MediaPlayer( 449): Error (-38,0)
E/MediaPlayer( 449): Error (-38,0)
I know the standard recommendation is to use a SoundPool in this case,
but it doesn't work for me because I need to know when each sound has
finished playing. Also my samples are very large and SoundPool seems
geared toward smaller sound clips.
Any idea what may have changed to cause this new behavior? Any ideas
for possible workarounds? Thanks!
--
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