ExtAudioFileWriteAsync io buffer
ExtAudioFileWriteAsync io buffer
- Subject: ExtAudioFileWriteAsync io buffer
- From: patrick machielse <email@hidden>
- Date: Tue, 18 Nov 2014 16:05:10 +0100
We're using ExtAudioFileWriteAsync() to record audio to disk while our application is playing music. ExtAudioFileWriteAsync is called from the render callback installed on the main AUGraph in our application.
Using the default configuration of ExtAudioFile, we sometimes encounter an error -66570 (kExtAudioFileError_AsyncWriteBufferOverflow) returned from ExtAudioFileWriteAsync(). It's not clear if this is a recoverable error, we assume it is not.
We've decided to increase the kExtAudioFileProperty_IOBuffer and associated kExtAudioFileProperty_IOBufferSizeBytes properties to 4 Mb (from the default 64 kb) in the hope that this will prevent the problem.
Is there a way to 'know' which buffer size will be large enough?
Thanks,
patrick
--
Patrick Machielse
Hieper Software
http://www.hieper.nl
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