Read this: Audio thread dos and don'ts

Always good to get a refresher on the fundamentals. This article is my bible.

Ross Bencina: Real-time audio programming 101: time waits for nothing

"...allocates memory and blocks in fun and unexpected ways. You absolutely cannot be making these calls from inside your IOProc. You also cannot be making calls to any ObjC or CF objects from inside your IOProc. Doing any of these will eventually cause glitching" -- Jeff Moore, Core Audio team

Comments

  • I should add, for those contemplating using Swift: Swift isn't designed for realtime use, and its use on the realtime thread is just as bad as using Objective-C there. Realtime thread's gotta be C only.

Sign In or Register to comment.