AUGraph Class
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.
An audio processing graph.
public class AUGraph : IDisposable, ObjCRuntime.INativeObject
type AUGraph = class
interface INativeObject
interface IDisposable
- Inheritance
-
AUGraph
- Implements
Remarks
void createAUGraph ()
{
AUGraphError result = 0;
int samplerNode, ioNode;
var sampler = new AudioComponentDescription () {
ComponentManufacturer = AudioComponentManufacturerType.Apple,
ComponentType = AudioComponentType.MusicDevice,
ComponentSubType = (int)AudioTypeMusicDevice.Sampler;
};
processingGraph = new AUGraph ();
samplerNode = processingGraph.AddNode (sampler);
var output = new AudioComponentDescription () {
ComponentManufacturer = AudioComponentManufacturerType.Apple,
ComponentType = AudioComponentType.Output;
ComponentSubType = (int)AudioTypeOutput.Remote;
};
ioNode = processingGraph.AddNode (output);
processingGraph.Open ();
result = processingGraph.ConnnectNodeInput (samplerNode, 0, ioNode, 0);
if (result != AUGraphError.OK)
throw new Exception ("Unable to open the audio processing graph. Error code: " + result);
samplerUnit = processingGraph.GetNodeInfo (samplerNode);
ioUnit = processingGraph.GetNodeInfo (ioNode);
}
Constructors
AUGraph() |
Creates a new AudioUnit graph. |
Properties
Handle |
Handle (pointer) to the unmanaged object representation. |
IsInitialized | |
IsOpen | |
IsRunning |