I can't find any info about OSStatus = -66569
returned by ExtAudioFileWriteAsync
, except its enum tag: kExtAudioFileError_AsyncWriteTooLarge
.
Right now I'm asking not why I get this error, but what does it really mean? Because I get this status, even if I try to pass any packets quantity more than zero...
For example: ExtAudioFileWriteAsync(MyExtAudioFileRef, 1, &MyAudioBufferList);
Thanks a lot in advance! =)
For me kExtAudioFileError_AsyncWriteTooLarge
means that you forgot to set the audio client format (kExtAudioFileProperty_ClientDataFormat)
before calling the traditional setup call to ExtAudioFileWriteAsync(file, 0, NULL)
; and then you wrote some real data.
I guess under the hood there's a default client format, which when different to the one implied by the AudioBufferList
s you write, could somehow be smaller, giving you this error.
Hope this answer found you in time!