public interface AUAudioUnitFactory extends NSExtensionRequestHandling
The principal class of a non-UI v3 audio unit extension will generally derive from NSObject and implement this protocol.
The principal class of a UI v3 audio unit extension must derive from AUViewController and implement this protocol.
| Modifier and Type | Method and Description |
|---|---|
AUAudioUnit |
createAudioUnitWithComponentDescriptionError(AudioComponentDescription desc,
org.moe.natj.general.ptr.Ptr<NSError> error)
Create an instance of an extension's AUAudioUnit.
|
beginRequestWithExtensionContextAUAudioUnit createAudioUnitWithComponentDescriptionError(AudioComponentDescription desc, org.moe.natj.general.ptr.Ptr<NSError> error)
This method should create and return an instance of its audio unit.
This method will be called only once per instance of the factory.
Note that in non-ARC code, "create" methods return unretained objects (unlike "create" C functions); the implementor should return an object with reference count 1 but autoreleased.