Fwd: CoreAudio and decoding/encoding MP3
Fwd: CoreAudio and decoding/encoding MP3
- Subject: Fwd: CoreAudio and decoding/encoding MP3
- From: Ev <email@hidden>
- Date: Thu, 28 Apr 2005 15:10:53 -0500
On Apr 28, 2005, at 1:29 PM, William Stewart wrote:
#2 - if I have an AUFormatter set up with MP3 as the input and playback as the output and I ask it to render, would the AUFormatter like it if I gave it the ID3 tag data? Will it parse over that, or do I have to pass it raw MP3 data, jumping over the ID3 tag stuff? (aka do I have to parse the MP3 file myself)
What's an AUFormatter?
Sorry for the confusion, I meant a formatter audio unit. (kAudioUnitType_FormatConverter / kAudioUnitSubType_AUConverter)
I've got formatters all over the app, and I just came to call them AUFormatters as a shortcut.
You can't directly interface compressed data streams with Audio Units - we've deliberately kept those two areas separate (AudioConverter API deals with this problem space). The AudioFile API will parse information out of an ID3 tag for Spotlight in Tiger, but we don't have an explicit API to read/write MP3-ID3 tags.
So what you're saying is I can't build an AUGraph that is a format convertor with a callback who's input is a compressed data stream, and that
I should just use the AudioConvertor calls (using AudioConverterConvertBuffer() for example) and do it buffer by buffer, and have the convertor set up to accept compressed (mp3) data...
Even then, I couldn't convert it TO mp3, as there's no mp3 encoder.
Is there an encoder for MP4/AAC?
Ev
Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering
http://www.audiofile-engineering.com/
_______________________________________________
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