Yes, AudioTrack and MediaPlayer will play along very nicely. MediaPlayer uses AudioTrack for its low-level audio interface. Up to 32 tracks of audio can be mixed.
On Jan 8, 5:49 am, blindfold <seeingwithso...@gmail.com> wrote: > Thanks David. You say that Cupcake's AudioTrack allows for > > > generating raw audio in the application to be streamed to the audio output. > > It does not include a byte stream interface to the MediaPlayer, for example. > > Does this mean that it bypasses MediaPlayer altogether in accessing > the audio hardware? If so, I hope it does not also bypass the low- > level audio mixer, because apart from my own on-the-fly synthesized > audio, I simultaneously output (asynchronously, depending on events) > my own sampled human speech as well as speech from the Android TTS > engine. It would be horrible if AudioTrack blocked the audio output > from simultaneous access by Mediaplayer. > > I had been expecting a new API method like MediaPlayer.create(Context > context, byte[] audioData) as a minor extension to > android.media.MediaPlayer, but now I am again confused about what to > expect, and actually worried about the interaction between AudioTrack > and MediaPlayer. > > Indeed there is no word about (low-level) audio mixing or MediaPlayer > in > > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_... > > So, will AudioTrack and MediaPlayer "play" along nicely? > > Thanks > > On Jan 8, 4:07 am, Dave Sparks <davidspa...@android.com> wrote: > > > That refers to the AudioTrack and AudioRecord interfaces which allow > > for things like recording from the microphone and generating raw audio > > in the application to be streamed to the audio output. It does not > > include a byte stream interface to the MediaPlayer, for example. > > > I don't see that those changes address Dan McGuirk's needs unless he's > > planning on doing MP3 decode in Java. > > > Cupcake is pretty much feature complete and we're working on > > stabilization now. I'm hoping to do some major updates to the media > > framework in the release after Cupcake. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---