Question

I am going to develop an AudioUnit software synth component for use in Logic Pro, GarageBand, etc. In Apple's tutorial, they use C++. Is this mandatory, or could I use Objective C as well?

Was it helpful?

Solution

I think you cannot avoid C++ completely. According to the documentation, you can create a new AudioUnit by subclassing Core Audio SDK’s C++ superclasses. This is, I think, mandatory.

However, you are free to mix C++ and Objective-C, so you should be able to create the C++ subclass and full-fill the requirements of an AudioUnit interface, but implement (most) of the functionality in Objective C.

OTHER TIPS

Yet, the central part of audio functionality (the low level rendering callback) consists of procedures, which are mostly written plain C, as you may see in much of the sample code and open source examples. For me it worked best to write this part as stand-alone first, only upon making sure it does its job as desired -robustly and properly, to take care of defining classes, instances, methods and code reusability.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top