From: Steven Winston <email@hidden>
To: learnfromforum <email@hidden>; coreaudio-api <email@hidden>
Sent: Tuesday, September 29, 2009 10:45:47 PM
Subject: Re: Getting PCM stream from MP3 hardware assisted decoder
As William et all were kind enough to answer this question for me
recently and I'm doing something that uses the answer for this here's
what I know:
The way to get the hardware assisted decoder PCM data is to use
AudioQueueOfflineRender. There's a demo in the TechQA of the iphone
developer site. AudioQueue will use hardware decoder for MP3 and AAC.
The hardware from my experience decodes at slightly different rates
for different mp3s which makes utilizing this in realtime a none
solution.
You can instead use the newer OS 3.1+ to do software decompression of
MP3s using audioconverter. The advantage of the software decompressor
is that it's uniform and therefore usable in realtime. The final
solution for anything that's pre 3.1 is to use libmad and compile it
in. It took some tweaking to get libmad to work with the arm asm
version that apple uses, but it works fine when it's
done.
On Tue, Sep 29, 2009 at 1:27 PM, learnfromforum
<
email@hidden> wrote:
> Hello list,
> Can anyone tell me if I can get the decoded PCM stream directly from the
> hardware-assisted decoder for an incoming MP3 stream? If yes, and how?
> Thank you,
> Tu
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (
email@hidden)
> Help/Unsubscribe/Update your Subscription:
> _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden