• 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: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?


  • Subject: Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
  • From: Herbie Robinson <email@hidden>
  • Date: Thu, 4 Aug 2005 19:22:07 -0400

If you are writing a utility to capture long segments of audio, it would be a good idea to implement rolling the files over after 5-15 minutes if that's possible. it will be much better in terms of crash survival.

AIFF is not able to write files this big.

CAF File (Core Audio Format) can - see documentation available at developer.apple.com/audio

This is a new file format we've introduced with Tiger and this is indeed one of the problems we seek to address

Bill

On 04/08/2005, at 1:00 PM, Simon Liu wrote:

How can I handle writing AIFF files to their maximum 4gb size?

When using AudioFileWriteBytes() to write out a large AIFF file, when
it reaches the limit of 4GB, I get an error
kAudioFileDoesNotAllow64BitDataSizeError 'off?'.  I also invoke
AudioFileClose().  However, the AIFF file is now not readable with
QuickTime (QTPlayer won't load it).  How can this be fixed?

I think the issue is to do with the AIFF header not having the size of
the data chunk set correctly.  Perhaps there is some other stuff too.
I re-opened the file with AudioFileOpen(), read all the data, and then
called AudioFileClose().  This did not fix the issue.

I suppose I could ensure that the number of bytes written will never
cause kAudioFileDoesNotAllow64BitDataSizeError to occur... but I'm
hoping that there is an easy way to fix the AIFF file.

-- -***************************************** ** http://www.curbside-recording.com/ ** ****************************************** _______________________________________________ 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: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
      • From: William Stewart <email@hidden>
References: 
 >How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ? (From: Simon Liu <email@hidden>)
 >Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ? (From: William Stewart <email@hidden>)

  • Prev by Date: AudioUnitInputCallback clicking noise
  • Next by Date: Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
  • Previous by thread: Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
  • Next by thread: Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
  • Index(es):
    • Date
    • Thread