Sample Code

Building a Signal Generator

Use AVAudioSourceNode and a custom render callback to generate audio signals.



Configure the Sample Code Project

Before you run the sample code project in Xcode:

  • This sample code project requires macOS 10.15

See Also

Multitrack Playback and Recording

Audio Engine Building Blocks

Add audio input, processing, and output to an audio engine instance.

Using Voice Processing

Add voice processing capabilities to your app by using AVAudioEngine.

Performing Offline Audio Processing

Add offline audio processing features to your app by enabling offline manual rendering mode.

class AVAudioEngine

A group of connected audio node objects used to generate and process audio signals and perform audio input and output.

class AVAudioNode

An abstract class for an audio generation, processing, or I/O block.

class AVAudioUnit

A subclass of the audio node class that, depending on the type of the audio unit, processes audio either in real time or non-real time.