Re: AudioFileWritePackets doesn't write until AudioFileClose
Re: AudioFileWritePackets doesn't write until AudioFileClose
- Subject: Re: AudioFileWritePackets doesn't write until AudioFileClose
- From: Doug Wyatt <email@hidden>
- Date: Tue, 8 Nov 2005 16:48:01 -0800
.m4a/.mp4 files are currently cached in memory when writing,
regardless of that property setting.
Other file formats are written to disk immediately.
kAudioFilePropertyDeferSizeUpdates controls whether the
implementation will go seeking around the file to update chunk sizes
(as in AIFF etc) after every call to write data -- in case you want
to sacrifice performance for a better probability that the file will
be consistent if you happen to crash before closing it.
Doug
On Nov 8, 2005, at 15:35, Dominic Feira wrote:
I have a lot of things working correctly now. Thanks to everybody
on the list for their help. There is still one bizarre problem
though. AudioFileWritePackets doesn't actually write anything to
file until AudioFileClose is called. This is a problem because
AudioFileWritePackets keeps consuming memory.
Is there a way to turn this caching off?
The header documentation states that
kAudioFilePropertyDeferSizeUpdates is off by default.
I apologize for asking this, because I'm pretty sure I saw this
question in the list archives before, while searching on a
different problem. I'm unable to find it right now.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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