Re: ExtAudioFileWrite - memory or IO problem, data not flushed to disk immediately
Re: ExtAudioFileWrite - memory or IO problem, data not flushed to disk immediately
- Subject: Re: ExtAudioFileWrite - memory or IO problem, data not flushed to disk immediately
- From: "tahome izwah" <email@hidden>
- Date: Mon, 11 Sep 2006 18:32:04 +0200
My guess would be that the data is cached (by the file system, not
ExtAudioFile) until you close the file. Did you try system("sync") or
fflush(NULL) after the write?
Btw, what is "ALAC"? You mean MPEG-4 AAC?
--th
2006/9/11, Simon Liu <email@hidden>:
I am converting Float32 PCM to AAC or ALAC with ExtAudioFileWrite().
This works fine but I've noticed a problem. The destination file is 0
bytes, until I invoke ExtAudioFileDispose() when ending the
conversion. So during conversion, where is the converted data?
In Activity Monitor, I noticed that the real memory usage creeps up
and matches the size of the converted data. With ALAC, the memory
usage rises rapidly and can reach hundreds of MBs quite easily. As
soon as the conversion finishes, it seems the data is written to disk
and then the memory is released (so it's not a leak).
Has anybody come across this? Why isn't the data being written out to
the file immediately? I am not asking to write the data
asynchronously. Is there a workaround or is this a known bug?
Intel and PPC 10.4.7, XCode 2.3.
--Simon
_______________________________________________
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
_______________________________________________
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