Type Alias AudioComponentFactoryFunction

Source
pub type AudioComponentFactoryFunction = Option<unsafe extern "C-unwind" fn(NonNull<AudioComponentDescription>) -> *mut AudioComponentPlugInInterface>;
Available on crate feature AudioComponent only.
Expand description

A function that creates AudioComponentInstances.

Authors of AudioComponents may register them from bundles as described above in the discussion of this header file, or dynamically within a single process, using AudioComponentRegister.

Parameter inDesc: The AudioComponentDescription specifying the component to be instantiated.

Returns: A pointer to a AudioComponentPlugInInterface structure.

See also Apple’s documentation

Aliased Type§

pub enum AudioComponentFactoryFunction {
    None,
    Some(unsafe extern "C-unwind" fn(NonNull<AudioComponentDescription>) -> *mut AudioComponentPlugInInterface),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(NonNull<AudioComponentDescription>) -> *mut AudioComponentPlugInInterface)

Some value of type T.