Hi Robert,

Thanks for the reply.

How can I start work with native code? I havnt used it anytime now. I
am new to it, if you can please help to start with using native code
libraries, as I hav found that the native MediaPlayer and
MediaPlayerService have the decode function. That it how they take mp3
data and decode it to pcm and then pass it on to the hardware thru the
PV multimedia framework. So I want to access that decode function from
native MediaPlayer.cpp.

Thanks for the help

Regards,
Purvi

On Dec 9, 5:23 pm, Robert Green <[email protected]> wrote:
> You're going to want to do that in native code.  I'm sure there are
> some open mp3 decompressors that you will be able to get to compile in
> C with some adaptations.  You probably won't have enough memory to
> decode the whole thing into ram but you can do portions at a time.  I
> believe mp3s are frame-based so it should work.
>
> On Dec 9, 10:10 am, purvi <[email protected]> wrote:> Hi,
>
> > I am streaming an MP3 audio and instead making this MP3 audio to play,
> > I want it to be converted to PCM format and pass this PCM audio to
> > AudioTrack(as it takes PCM data as input.) instead of passing my MP3
> > stream to MediaPlayer.
> > Can anyone please help me to convert the MP3 to PCM stream?
>
> > Thanks.
> > Regards,
> > Purvi

-- 
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