Saturday, 30 November 2013

Create your own Template for Developing Audio Unit (Instrument)

From XCode 3.2, it provide the template for developer to create the Audi Unit. Since XCode 4.2 there is no more Audio Unit Template for developer to use. Thus, I provide the step of Hacking the latest template to be your own template. Then, you can continue to develop your own AU for the latest MacOSX 10.9 and XCode 5.0.2 development environment. Most of the method that we do on this example is to change the Name of Template to be your own Template name.

Prerequisites 
  1. Mac OSX 10.9
  2. Latest XCode (5.0.2)
  3. Audio Unit Template Generator (Download it from This )

Step 1
             Download AudioUnitTemplateGenerator and extract it to your folder. Then, open the AudioUniteTemplateGenerator.xcodeproj to open the template in Xcode

There are couple things that we have to adjust in order make this template to our template. Most of the scenario is to rename every AudioUnitTemplateGenerator to your own name in this example I use “MyAUTemplate". 

Step 2.
Rename Identity and Type to “MyAUTemplate” 


Press Enter, The dialog of Xcode Will show up that we want to rename the item in this project or not, Press Rename

Step 3. 
Replace all the name in the template source code to be the name of your project. 


Click Repress all

Step 4. 
Change Source Filename
 

Step 5.
Change Linking in Build Settings


Step 6.
Manage the Scheme and Create Your Scheme



Step 7.
Compile and Testing with your new au template component

Enjoy :)


No comments:

Post a Comment