Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
- Subject: Re: How to fix AIFF file after kAudioFileDoesNotAllow64BitDataSizeError ?
- From: William Stewart <email@hidden>
- Date: Thu, 4 Aug 2005 16:52:40 -0700
This was another issue that we wanted to take care of with CAF files
as well.
So, for constant bit rate data (including linear PCM of course),
there is a "crash proof" semantic that is applied to CAF files -
details are in the docs; that is, crashing whilst in the middle of
recording a long file does NOT result in an invalid file.
Bill
On 04/08/2005, at 4:22 PM, Herbie Robinson wrote:
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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