AudioComponentDescription.ComponentSubType Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Audio Unit component subtype, depending on the ComponentSubType value you should use one of the values from AudioTypeOutput, AudioTypeMusicDevice, AudioTypeConverter, AudioTypeEffect, AudioTypeMixer, T: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 AudioTypeOutput, AudioTypeMusicDevice, AudioTypeConverter, AudioTypeEffect, AudioTypeMixer, T: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 ();