Re: Examples for AudioFileStream and AudioConverter?
Re: Examples for AudioFileStream and AudioConverter?
- Subject: Re: Examples for AudioFileStream and AudioConverter?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 11 Sep 2008 01:57:32 -0600
On Sep 10, 2008, at 6:07 PM, William Stewart wrote:
There is a sample there of using audio file with audio converter -
which is not too different than what you are doing below. I think
that would help you to sort some of the code out below as it is (at
a casual glance) doing more than I think you really need to do
I've already read through it, but this time I tried running it
alongside my program using the AudioFileStream API. And I've found
that, for some reason, AudioFileStream gets the data format completely
wrong. On one such MP3 chunk of data, AudioFileStream says it's a
44KHz stereo MP1 with 384 frames per packet, whereas AudioFile is
reporting something more realistic - 11KHz mono MP3 with 576 frames
per packet.
QuickTime Player is siding with AudioFile on this.
This coincides with AudioFile reporting a sane size per packet on VBR
MP3s (1052 bytes) while the rough AudioFileStream equivalent,
AudioConverterGetProperty(), is returning a crazy high maximum packet
size (8192 bytes).
So unless anyone has any explanations for this strange behavior, it
looks like I'm going to have to write the MP3 to disk and use
AudioFile to facilitate the conversion, which seems like a crazy
workaround, and I'm wondering how I'm going to get streaming to work...
Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request
_______________________________________________
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