Edit

Share via


AUGraph Class

Definition

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

Methods

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()
ConnnectNodeInput(Int32, UInt32, Int32, UInt32)
Create(Int32)
DisconnectNodeInput(Int32, UInt32)
Dispose()

Releases the resources used by the AUGraph object.

Dispose(Boolean)

Releases the resources used by the AUGraph object.

Finalize()

Finalizer for the AUGraph object

GetCPULoad(Single)
GetMaxCPULoad(Single)
GetNode(UInt32, Int32)
GetNodeCount(Int32)
GetNodeInfo(Int32)
GetNodeInfo(Int32, AudioComponentDescription, AUGraphError)
GetNodeInfo(Int32, AUGraphError)
GetNumberOfInteractions(Int32, UInt32)
GetNumberOfInteractions(UInt32)
Initialize()
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.

Applies to