Contents

Introduction

Explains how to use Core Audio frameworks and the Core Audio SDK to create audio units.

Who Should Read This Document?

To use this document, you should already be familiar with the C programming language. You should be comfortable with using Xcode to create an OS X plug-in as described in the Xcode Overview. For example, you should know about Xcode’s various build options, such as ZeroLink, and when to use them. You should also know how and why to include frameworks and files in the linking phase of an Xcode build.

It’s very helpful in using this document to have enough familiarity with the C++ programming language to read header and implementation files. It’s also helpful to have a basic understanding of the OS X Component Manager as described in Component Manager for QuickTime, as well as a grounding in digital audio coding and audio DSP (digital signal processing).

This document does not address the needs of audio unit host application developers, whose code opens, connects, and uses audio units. Nor is this document an audio unit cookbook. It devotes very few pages to DSP or music synthesis techniques, which work essentially the same way in audio units as in other audio software technologies

Organization of This Document

Depending on your needs and your learning style, you can use this document in the following ways.

  • If you want to get your hands on building an audio unit right away, go straight to Tutorial: Building a Simple Effect Unit with a Generic View. As you build the audio unit, you can refer to other sections in this document for conceptual information related to what you’re doing.
  • If you prefer to build your knowledge incrementally, starting with a solid conceptual foundation before seeing the technology in action, read the chapters in order.
  • If you already have some familiarity with building your own audio units, you may want to go straight to The Audio Unit and Appendix: Audio Unit Class Hierarchy. You might also want to review A Quick Tour of the Core Audio SDK to see if the SDK contains some treasures you haven’t been using until now.

This document contains the following chapters:

  • Audio Unit Development Fundamentals, a bird's eye view of audio unit development, covering Xcode, the Core Audio SDK, design, development, testing, and deployment
  • The Audio Unit, design and programming considerations for the part of an audio unit that performs the audio work
  • The Audio Unit View, a description of the two audio unit view types—generic and custom—as well as an explanation of parameter automation
  • A Quick Tour of the Core Audio SDK: Taking advantage of the code in the Core Audio SDK is the fastest route to audio unit development
  • Tutorial: Building a Simple Effect Unit with a Generic View, a tutorial that takes you from zero to a fully functioning effect unit
  • Appendix: Audio Unit Class Hierarchy, a tour of the audio unit class hierarchy provided by the Core Audio SDK

Making Further Progress in Audio Unit Development

To go forward in developing your own audio units based on what you learn here, you will need:

  • The ability to develop plug-ins using the C++ programming language, because the audio unit class hierarchy in the Core Audio SDK uses C++.
  • A grounding in audio DSP, including the requisite mathematics. Alternatively, you can work with someone who can provide DSP code for your audio units, along with someone who can straddle the audio unit and math worlds. For optimum quality and performance of an audio unit, DSP code needs to be correctly incorporated into the audio unit scaffolding.
  • A grounding in MIDI, if you are developing instrument units.

Required Tools for Audio Unit Development

When you perform a full installation of the current version of OS X, including Xcode Tools, you’ll have everything you need on your system for audio unit development. These items are also available free from Apple’s developer website, http://developer.apple.com :

  • The latest version of Xcode. The examples in this document use Xcode version 2.4.
  • The latest OS X header files. The examples in this document use the header files in the 10.4.0 OS X SDK, installed with Apple’s Xcode Tools.
  • The latest Core Audio development kit. The examples in this document use Core Audio SDK v1.4.3, installed with Apple’s Xcode Tools at this location on your system: /Developer/Examples/CoreAudio
  • At least one audio unit hosting application. Apple recommends the AU Lab application, installed with Apple’s Xcode Tools at this location on your system: /Developer/Applications/Audio/AU Lab
  • The audio unit validation command-line tool, auval, Apple’s validation tool for audio units, provided with OS X.

See Also

As you learn about developing audio units, you may find the following information and tools helpful:

Next

Copyright © 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-07-15