ExtAudioFileWriteAsync Ringbuffer Size
ExtAudioFileWriteAsync Ringbuffer Size
- Subject: ExtAudioFileWriteAsync Ringbuffer Size
- From: Dominic Feira <email@hidden>
- Date: Fri, 11 Mar 2011 12:22:00 -0500
Hi. I'm running into a problem using ExtAudioFileWriteAsync. I'm missing audio from the final recording. I am getting this behavior on a Mac mini, but not on a Mac Pro. The application is also writing to the disk pretty heavily so I think the issue is disk contention.
Doug Wyatt said the following on Jul 25, 2006:
> You *will* fill the ring buffer if you call it more quickly than data
> can be written to disk, which is almost certainly happening if
> 25*framesPerWrite (in your example) is larger than the ring buffer
> (default size is 64K bytes).
If the ring buffer used for ExtAudioFileWriteAsync is only 64k I can see why I'm having problems. 64k amounts to only about 1/4 of a second of 44.kHz stereo 32-bit floating point audio. That just doesn't seem like enough leeway for handling disk contention. Is there a way to increase the size of this buffer? I don't see a property on ExtAudioFile that does this.
Thanks.
Dominic Feira / Code Monkey / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.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