Share via


AUGraph Class

Definition

An audio processing graph.

public class AUGraph : ObjCRuntime.DisposableObject
type AUGraph = class
    inherit DisposableObject
Inheritance

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

Name Description
AUGraph()

Creates a new AudioUnit graph.

Properties

Name Description
Handle (Inherited from DisposableObject)
IsInitialized
IsOpen
IsRunning
Owns (Inherited from DisposableObject)

Methods

Name Description
AddNode(AudioComponentDescription)

Adds a node matching the description to the graph.

AddRenderNotify(RenderDelegate)

Registers a method to be invoked every time the audio graph renders.

ClearConnections()
ClearHandle() (Inherited from DisposableObject)
ConnnectNodeInput(Int32, UInt32, Int32, UInt32)
Create(Int32)
DisconnectNodeInput(Int32, UInt32)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean)

Releases the resources used by the AUGraph object.

Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetCPULoad(Single)
GetHashCode() (Inherited from DisposableObject)
GetMaxCPULoad(Single)
GetNode(UInt32, Int32)
GetNodeCount(Int32)
GetNodeInfo(Int32, AudioComponentDescription, AUGraphError)
GetNodeInfo(Int32, AUGraphError)
GetNodeInfo(Int32)
GetNumberOfInteractions(Int32, UInt32)
GetNumberOfInteractions(UInt32)
Initialize()
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
LogAllNodes()
Open()
RemoveNode(Int32)
RemoveRenderNotify(RenderDelegate)

Removes a previously registered callback from being called every time the audio graph is rendered.

SetNodeInputCallback(Int32, UInt32, RenderDelegate)
Start()

Starts the audio graph.

Stop()
TryOpen()
Update()

Updates the state of the AudioUnit graph.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to