AudioFileStream unable to read m4a data
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