Enum coreaudio::audio_unit::types::Type [] [src]

pub enum Type {
    IO(IOType),
    MusicDevice(MusicDeviceType),
    MusicEffect,
    FormatConverter(FormatConverterType),
    Effect(EffectType),
    Mixer(MixerType),
    Panner,
    Generator(GeneratorType),
    OfflineEffect,
    MidiProcessor,
}

Represents the different kinds of Audio Units that are available.

Original documentation here.

Variants

IO(IOType)

Provides input, output, or both input and output simultaneously.

It can be used as the head of an audio unit processing graph.

Available in OS X v10.2 and later.

MusicDevice(MusicDeviceType)

An instrument unit can be used as a software musical instrument, such as a sampler or synthesizer.

It responds to MIDI (Musical Instrument Digital Interface) control signals and can create notes.

Available in OS X v10.2 and later.

MusicEffect

An effect unit that can respond to MIDI control messages, typically through a mapping of MIDI messages to parameters of the audio unit's DSP algorithm.

Available in OS X v10.2 and later.

FormatConverter(FormatConverterType)

A format converter unit can transform audio formats, such as performing sample rate conversion.

A format converter is also appropriate for dferred rendering and for effects such as varispeed.

A format converter unit can ask for as much or as little audio input as it needs to produce a given output, while still completing its rendering within the time represented by the output buffer.

For effect-like format converters, such as pitch shifters, it is common to provide both a real-time and an offline version. OS X, for example, includes Time-Pitch and Varispeed audio units in both real-time and offline versions.

Available in OS X v10.2 and later.

Effect(EffectType)

An effect unit repeatedly processes a number of audio input samples to produce the same number of audio output samples.

Most commonly, an effect unit has a single input and a single output.

Some effects take side-chain inputs as well.

Effect units can be run offline, such as to process a file without playing it, but are expected to run in real-time.

Available in OS X v10.2 and later.

Mixer(MixerType)

A mixer unit takes a number of input channels and mixes them to provide one or more output channels.

For example, the StereoMixer SubType in OS X takes multiple mono or stereo inputs and produces a single stereo output.

Available in OS X v10.2 and later.

Panner

A panner unit is a specialised effect unit that distributes one or more channels in a single input to one or more channels in a single output.

Panner units must support a set of standard audio unit parameters that specify panning coordinates.

Available in OS X v10.3 and later.

Generator(GeneratorType)

A generator unit provides audio output that has no audio input.

This audio unit type is appropriate for a tone generator.

Unlike an instrument unit, a generator unit does not have a control input.

Available in OS X v10.3 and later.

OfflineEffect

An offline effect unit provides digital signal processing of a sort that cannot proceed in real-time.

For example, level normalisation requires examination of an entire sound, beginning to end, before the normalisation factor can be calculated.

As such, offline effect units also have a notion of a priming stage that can be performed before the actual rendering/processing phase is executed.

Available in OS X v10.3 and later.

MidiProcessor

FIXME: Could not find any documenation for this type - it seems it was added very recently (around 2013) and Apple's documentation doesn't seem to have updated to include it.

Methods

impl Type
[src]

fn to_u32(&self) -> u32

Convert the Type to its associated u32 for compatibility with original API.

fn to_subtype_u32(&self) -> Option<u32>

Convert the Type to the const u32 that is associated with its subtype.

Trait Implementations

impl Debug for Type
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Type
[src]

fn clone(&self) -> Type

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Type
[src]

impl From<EffectType> for Type
[src]

fn from(ty: EffectType) -> Self

Performs the conversion.

impl From<FormatConverterType> for Type
[src]

fn from(ty: FormatConverterType) -> Self

Performs the conversion.

impl From<MixerType> for Type
[src]

fn from(ty: MixerType) -> Self

Performs the conversion.

impl From<GeneratorType> for Type
[src]

fn from(ty: GeneratorType) -> Self

Performs the conversion.

impl From<MusicDeviceType> for Type
[src]

fn from(ty: MusicDeviceType) -> Self

Performs the conversion.

impl From<IOType> for Type
[src]

fn from(ty: IOType) -> Self

Performs the conversion.