• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Examples for AudioFileStream and AudioConverter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Examples for AudioFileStream and AudioConverter? (From: Nick Zitzmann <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: james mccartney <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: William Stewart <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: Nick Zitzmann <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: William Stewart <email@hidden>)
 >Re: Examples for AudioFileStream and AudioConverter? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: dev. in leopard, won't run in tiger
  • Next by Date: Exporting a QTMovie with settings
  • Previous by thread: Re: Examples for AudioFileStream and AudioConverter?
  • Next by thread: Re: Examples for AudioFileStream and AudioConverter?
  • Index(es):
    • Date
    • Thread