Global Variable

kAudioUnitProperty_PresentPreset

The active factory preset for an audio unit.

Declaration

var kAudioUnitProperty_PresentPreset: AudioUnitPropertyID { get }

Discussion

A read/write AUPreset data structure valid on the audio unit global scope, The presetName field in the struct is of type CFString and follows Core Foundation memory semantics.

When setting the active factory preset on an audio unit with the AudioUnitSetProperty(_:_:_:_:_:_:) function, you own the reference to the preset name and are responsible for later releasing it by calling the CFRelease function.

When obtaining the active factory preset from an audio unit with the AudioUnitGetProperty(_:_:_:_:_:_:) function, you also own the reference to the preset name and are responsible for later releasing it by calling the CFRelease function.