Contents

createAudioUnit(with:)

Creates an instance of an extension’s audio unit.

Declaration

func createAudioUnit(with desc: AudioComponentDescription) throws -> AUAudioUnit

Parameters

  • desc:

    The description of the audio component.

Return Value

An instance of the extension’s audio unit.

Discussion

This method is called only once per factory instance.