011, at 7:56 , Steve gfx wrote:
> Hi,
>
> I'm writing the contents of a buffer to a WAVE file using AudioFileWriteBytes . (I can use AudioFileWritePackets also, but I get exactly the same behaviour)
>
> The total number of bytes to write is about 400k which pre-exist, so need need to stream.
>
> If I set ioNumberBytes to 8192 or less, and loop through all the bytes, all works well, but If I set it higher than this I get a -40 error , which I can't locate in the docs.
>
> Although it works OK with these smaller chunks, obviously it's a little more inefficient as I have to loop through the buffer more times; I would prefer to write in as few chunks as possible, 1 preferably.
>
> Is this just an inherent limitation of those two functions?
>
> Thanks
>
> Steve _______________________________________________
_______________________________________________
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