• 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
AudioFileStream unable to read m4a data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioFileStream unable to read m4a data


  • Subject: AudioFileStream unable to read m4a data
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 28 Mar 2008 15:23:49 -0700

I'm using AudioFileStream to parse audio data arriving over a TCP socket; on the other end, the sender is using AudioFile to read the contents of the file starting at offset 0.

This works great for every MP3 file I throw at it, of many different bit-rates and encoders, but it's failing on every AAC (.m4a) file. AudioFileStreamParseBytes keeps returning the error code 'typ?'. I've tried setting the inFileTypeHint parameter to kAudioFileM4AType when creating the AudioFileStream, but it didn't help.

The same files play fine locally, if I run the data from AudioFile straight into an AudioQueue. It just seems to be AudioFileStream that has trouble.

These are mostly fairly old AAC files, encoded by iTunes 4, since I rip things into MP3 nowadays. I'll try ripping some new m4a tracks with the current iTunes and see if they fare any better...

Any idea what might be wrong here?

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: AudioFileStream unable to read m4a data
      • From: Jens Alfke <email@hidden>
    • Re: AudioFileStream unable to read m4a data
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Logic, AU development and parameter scrambling
  • Next by Date: Re: AudioFileStream unable to read m4a data
  • Previous by thread: Re: loading AU from app's bundle?
  • Next by thread: Re: AudioFileStream unable to read m4a data
  • Index(es):
    • Date
    • Thread