Re: Examples for AudioFileStream and AudioConverter?
Re: Examples for AudioFileStream and AudioConverter?
- Subject: Re: Examples for AudioFileStream and AudioConverter?
- From: Thomas Clement <email@hidden>
- Date: Fri, 12 Sep 2008 00:23:07 +0200
On Sep 11, 2008, at 9:57 AM, Nick Zitzmann wrote:
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.
I think I've seen this bug too (rdar://6155424).
It seems the AudioFileStream API can get tricked by false audio frame
headers. The parser fails to recognize them correctly.
Another bug (rdar://5874023) due to false audio frame headers is a
crash in the AudioToolbox:
0 MP3AudioStream::GeneratePackets() + 1998
1 AudioFileStreamObject::ParseBytes(unsigned long, void const*,
unsigned long) + 117 2
2 AudioFileStreamParseBytes + 110
Good luck with that :(
Regards,
Thomas
_______________________________________________
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