Re: AudioFileStream unable to read m4a data
Re: AudioFileStream unable to read m4a data
- Subject: Re: AudioFileStream unable to read m4a data
- From: Jens Alfke <email@hidden>
- Date: Mon, 31 Mar 2008 15:25:34 -0700
On 31 Mar '08, at 9:46 AM, Stephen Davis wrote:
MPEG-4 supports an entirely different mechanism for streaming AAC
audio so that would be how to avoid the latency in that case. I
have no knowledge of the streaming architecture though so you're
definitely on your own there. Current Shoutcast-style streaming AAC
is done use MPEG-2 ADTS format where the packet headers precede each
packet
Thanks. I figured out how to generate ADTS using ExtAudioFile: leave
the data format as AAC, but set the file type to
kAudioFileAAC_ADTSType. This results in files that can be played by
the PlayFile sample and by QT Player.
However, my app can't play them, and neither can the AudioQueueTools
sample. In aqplay.cpp, the first call to AudioFileReadPackets returns
with an error -40 (posErr, "tried to position before start of file").
I tried setting the inFileTypeHint parameter to AudioFileOpenURL to
kAudioFileAAC_ADTSType, but that didn't help.
Help?!
—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