AudioComponentDescription.ComponentSubType Field

Definition

Audio Unit component subtype, depending on the ComponentSubType value you should use one of the values from AudioTypeOutputAudioTypeMusicDeviceAudioTypeConverterAudioTypeEffectAudioTypeMixerT:AudioUnit.AudioTypePanner, AudioTypeGenerator

public int ComponentSubType;
val mutable ComponentSubType : int

Field Value

Remarks

Audio Unit component subtype, depending on the ComponentType you should use one of the values from AudioTypeOutputAudioTypeMusicDeviceAudioTypeConverterAudioTypeEffectAudioTypeMixerT:AudioUnit.AudioTypePanner, AudioTypeGenerator.

Since this is an integer, and the values on those enumerations are strongly typed, you typically need to cast.   The following example shows this:

var processingGraph = new AUGraph ();

int samplerNode, ioNode;

var musicSampler = new AudioComponentDescription () {
        ComponentManufacturer = AudioComponentManufacturerType.Apple,
        ComponentType = AudioComponentType.MusicDevice,
        ComponentSubType = (int)AudioTypeMusicDevice.Sampler
};
samplerNode = processingGraph.AddNode (musicSampler);

var remoteOutput = new AudioComponentDescription () {
        ComponentManufacturer = AudioComponentManufacturerType.Apple,
        ComponentType = AudioComponentType.Output,
        ComponentSubType = (int)AudioTypeOutput.Remote
};
ioNode = processingGraph.AddNode (remoteOutput);

processingGraph.Open ();
.

Applies to