On Mon, Jan 11, 2016 at 2:08 AM, Alexander Bollbach <
[email protected]> wrote:

>
> I am trying to record small chunks of PCM for this beat making app I'm
> writing and so I figured it would be easy enough to just do
> AudioFileWriteBytes in this callback and multiply the number of frame with
> how many bytes per frame and just write it but the file winds up being a
> garbled mess.
>
You cannot do file i/o from a render callback or anywhere else in the
realtime audio thread(s).

Please read this, which isn't about audiounits but is about realtime audio
programming.

http://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to