Right David, it seems pretty bad. The issue is reported also in

http://code.google.com/p/android/issues/detail?id=398

which I found after submitting

http://code.google.com/p/android/issues/detail?id=739

I hope these limitations get fixed for the next Android SDK,
because I don't like the idea of messing around with scratchpad
files.

On May 31, 2:59 pm, David Given <[EMAIL PROTECTED]> wrote:
> blindfold wrote:
>
> [...]
>
> > However, in android.media.MediaPlayer I only find create() for URIs
> > and
> > for resources, and not for ByteArrayInputStream!? Does that mean that
> > Android cannot be used for in-memory audio synthesis? Or do I overlook
> > some alternative way of programming in Android?
>
> MediaPlayer.create() is just a convenience function --- you ought to be
> able to do:
>
> FileDescriptor fd = something.getFD();
> MediaPlayer mp = new MediaPlayer();
> mp.setDataSource(fd, "audio/wav"); // FIXME check MIME type!
>
> Unfortunately the documentation (which is unevenly indexed) doesn't
> mention getFD() on anything other than file streams. There *may* be a
> way somewhere of being able to create a Unix pipe, opening it, and
> giving MediaPlayer a FileDescriptor that way, but I wouldn't know how.
>
> I'm currently writing an app using MediaPlayer extensively, and my
> experiences indicate that it's extremely touchy --- large chunks of it
> don't work, error reporting is poor, it's missing key bits of
> functionality (such as synthesised audio!) and it's very touchy. If you
> do anything the slightest bit wrong it has a tendency to crash your app.
>
> You might want to wait for the next SDK, or mug a top-50 winner...
>
> --
> ┌─── dg@cowlark.com ─────http://www.cowlark.com─────
> │ "I have always wished for my computer to be as easy to use as my
> │ telephone; my wish has come true because I can no longer figure out
> │ how to use my telephone." --- Bjarne Stroustrup
>
>  signature.asc
> 1KDownload
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to