can I set up a separate thread for an AU Callback (which is in C)? How ? If so what threads methods is best for CoreAudio? NSThreads? NSOperationQueue? GCD? Something else?
Many thanks.
can I set up a separate thread for an AU Callback (which is in C)? How ? If so what threads methods is best for CoreAudio? NSThreads? NSOperationQueue? GCD? Something else?
Many thanks.
No, it is not possible, because:
A render callback lives on a real-time priority thread on which subsequent render calls arrive asynchronously. Apple Documentation
Isn't your AU callback already running in a separate thread? In most cases, I'd say let the OS handle that for you. UI always should be on the main thread, while Core Audio typically does its stuff on another thread.
I've only had experience with NSThread and pthreads, since I started before GCD and NSOperationQueue, and haven't had a chance to see if and how they work with Core Audio.