You can also play audio files which uses the amr audio codec (amr,
m4a).

On Nov 5, 12:41 pm, David Given <[EMAIL PROTECTED]> wrote:
> Derek wrote:
>
> [...]
>
> > Thanks the MediaPlayer, it's possible to play MP3 and OGG. However,
> > how can we play other audio formats ? We have many audio decoders in
> > Java (jSpeex, Monkey Audio ...) that can convert (on fly) an encoded
> > audio stream to PCM stream. It means that we can have an PCM
> > InputStream but we don't see any method with InputStream as parameter
> > in MediaPlayer class ?
>
> This seems not to be really possible right now.
>
> It *is* possible to hack things together that you can do this --- for
> example, you can create a local socket, tell the MediaPlayer to stream
> from the socket, and then write data to the other end --- it's very slow
> and Dalvik isn't really up to the task of synthesising audio data on the
> fly, so the results are very unsatisfactory.
>
> Hopefully we'll get more codecs in a future version...
>
> --
> David Given
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to