Mac Developer Library

Developer

Audio Unit Framework Reference Audio Component Services Reference

Options
Deployment Target:

On This Page
Language:

Audio Component Services Reference

Audio Component Services defines interfaces for finding and opening audio units and audio codecs. It preserves binary compatibility with OS X v10.5 component interfaces while removing dependency on the Component Manager.

Functions

Data Types

  • An audio component.

    Declaration

    Swift

    typealias AudioComponent = COpaquePointer

    Objective-C

    typedef struct OpaqueAudioComponent *AudioComponent;

    Import Statement

    Objective-C

    @import AudioUnit;

    Swift

    import AudioUnit

    Availability

    Available in OS X v10.6 and later.

  • A component instance, or object, is an audio unit or audio codec.

    Declaration

    Swift

    typealias AudioComponentInstance = UnsafeMutablePointer<ComponentInstanceRecord>

    Objective-C

    typedef struct OpaqueAudioComponentInstance *AudioComponentInstance;

    Import Statement

    Objective-C

    @import AudioUnit;

    Swift

    import AudioUnit

    Availability

    Available in OS X v10.6 and later.

  • Identifying information for an audio component.

    Declaration

    Swift

    struct AudioComponentDescription { var componentType: OSType var componentSubType: OSType var componentManufacturer: OSType var componentFlags: UInt32 var componentFlagsMask: UInt32 init() init(componentType componentType: OSType, componentSubType componentSubType: OSType, componentManufacturer componentManufacturer: OSType, componentFlags componentFlags: UInt32, componentFlagsMask componentFlagsMask: UInt32) }

    Objective-C

    typedef struct AudioComponentDescription { OSType componentType; OSType componentSubType; OSType componentManufacturer; UInt32 componentFlags; UInt32 componentFlagsMask; } AudioComponentDescription;

    Fields

    componentType

    A unique 4-byte code identifying the interface for the component.

    componentSubType

    A 4-byte code that you can use to indicate the purpose of a component. For example, you could use lpas or lowp as a mnemonic indication that an audio unit is a low-pass filter.

    componentManufacturer

    The unique vendor identifier, registered with Apple, for the audio component.

    componentFlags

    Set this value to zero.

    componentFlagsMask

    Set this value to zero.

    Availability

    Available in OS X v10.6 and later.