Re: writing m4a problems continued
Re: writing m4a problems continued
- Subject: Re: writing m4a problems continued
- From: Doug Wyatt <email@hidden>
- Date: Sat, 7 May 2005 05:54:44 -0700
On May 6, 2005, at 23:05, john wrote:
I decided to try out AudioFileWritePackets() and took a specific
look at the AudioFileTools project in the
CAAudioFile::WritePacketsFromCallback() method to be sure I'm using
it properly.
I'm getting error 0xFFFFFFF8, or -8, from AudioFileWritePackets, an
error which I cannot find any info about. This is right after a
successful call to AudioConverterFillComplexBuffer() where I have
verified there is data to write by checking the mDataByteSize
field of the AudioBufferList and AudioStreamPacketDescription. I am
attempting to write 1 packet of app. size 370 (it varies from call
to call) given from AudioConverterFillComplexBuffer() which
received a buffer of 32bit float PCM of size 8192.
Any ideas?
John,
That looks like an error code from the MP4 audio file component ...
hm, a MP4DataInformationAtom has a nil dataReference atom pointer.
When writing .mp4/.m4a, the component requires that you start with
packet 0 and write packets sequentially from there. What packet
number are you writing when this fails? What packet numbers have you
written previously?
Doug
_______________________________________________
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