I'm developing an app that streams some audio samples from
eMusic.com.  I basically use the MediaPlayer class to play back the
sample.mp3 from a particular URL (I do use prepareAsync).  On Android
1.6-2.1, the playback is fine, however on Android 2.2 (both the
emulator and Nexus One) the playback contains tinny artifacts and
often dies with an error like:

I/AwesomePlayer(   34): calling prefetcher->prepare()
I/Prefetcher(   34): [0x175f8] cache below low water mark, filling
cache.
I/AwesomePlayer(   34): prefetcher is done preparing
E/EMD -   (  293): Duration 0
D/AudioSink(   34): bufferCount (4) is too small and increased to 12
E/MediaPlayer(  293): error (1, -2147483648)
E/MediaPlayer(  293): Error (1,-2147483648)

In case someone wants to try to reproduce this.  Download the file
http://www.emusic.com/samples/m3u/song/12039152/23641389.m3u on the
3rd line you will find the address to a mp3 file that can be played
back with MediaPlayer.

I know that there is a known issue with streaming apps like pandora/
last.fm in 2.2.  However, I thought those were related to AAC.  Do you
think my issue is connected - if so (or not so), is there anything I
can do right now to resolve the issue?  Or do I have to just wait for
a new Android release?

Thanks for any help!

-Jack

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to