• 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: writing m4a problems continued
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: writing m4a problems continued, II
      • From: john <email@hidden>
    • Re: writing m4a problems continued
      • From: john <email@hidden>
References: 
 >writing m4a problems continued (From: john <email@hidden>)

  • Prev by Date: Re: AUBase preset handling change
  • Next by Date: Working with Input and output Device
  • Previous by thread: writing m4a problems continued
  • Next by thread: Re: writing m4a problems continued
  • Index(es):
    • Date
    • Thread