Hi, I'm stil new to Android, but familiar with Java ME (J2ME). I need to play audio that is *NOT* a predefined audio file, and *NOT* a fixed audio resource either, but an audio buffer with on-the-fly synthesized audio content. Now in Java ME I do this by creating a ByteArrayInputStream, which also exists in Android (java.io.ByteArrayInputStream), and next I can in Java ME apply Manager.createPlayer() to my ByteArrayInputStream while specifying a standard audio format, and fill the byte array with my interactively synthesized data.
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? If I look at the Java ME specification http://java.sun.com/javame/reference/apis/jsr135/javax/microedition/media/Manager.html it includes the possibility of creating a player from an InputStream, but the Android language specification at http://code.google.com/android/reference/android/media/MediaPlayer.html does not include the input stream option!? If true, that would make Android useless for porting my interactive Java ME applications. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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] 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 -~----------~----~----~----~------~----~------~--~---

