init(audioComponentDescription:)
Creates a MIDI instrument audio unit with the component description you specify.
Declaration
init(audioComponentDescription description: AudioComponentDescription)Parameters
- description:
The description of the audio component.
Return Value
A new AVAudioUnitMIDIInstrument instance.
Discussion
The component type must be kAudioUnitType_MusicDevice or kAudioUnitType_RemoteInstrument.