Getting PCM data from MP3/AAC/ALAC File
Getting PCM data from MP3/AAC/ALAC File
- Subject: Getting PCM data from MP3/AAC/ALAC File
- From: Daniel Staudigel <email@hidden>
- Date: Wed, 17 Dec 2008 15:14:27 -0800
I am trying to get a PCM stream out of out of a generic audio file.
So far, I have tried:
1) Opening it with AudioFile, then trying to pipe it through a the
appropriate AudioConverter, using AudioBufferFillComplexBuffer. This
fails either silently (when trying to play the PCM data), or crashes
because of a buffer overrun during the conversion step
2) Opening it with ExtAudioFile with the Client format set to be the
desired PCM data. This fails either by playing completely garbled
noise (not white noise, which is what I'd expect if it were playing
MP3/AAC data as if it were PCM), or by playing nothing, or crashing in
a similar buffer-overrun situation as above.
Poking around the lists I saw a reference to an old piece of sample
code (ConvertFile?) that I can't get ahold of anymore. Does anybody
have this, or something similar?
This seems like it should be easy. I am not familiar with CoreAudio
or AudioToolbox, but I've spent enough hours on this that I am
reaching out for help!
Cheers,
Daniel Staudigel
_______________________________________________
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