共用方式為


AUGraph 類別

定義

音訊處理圖表。

public class AUGraph : IDisposable, ObjCRuntime.INativeObject
type AUGraph = class
    interface INativeObject
    interface IDisposable
繼承
AUGraph
實作

備註

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);
}

建構函式

AUGraph()

建立新的 AudioUnit 圖表。

屬性

Handle

處理非受控物件標記法) (指標。

IsInitialized

音訊處理圖表。

IsOpen

音訊處理圖表。

IsRunning

音訊處理圖表。

方法

AddNode(AudioComponentDescription)

將符合描述的節點加入至圖形。

AddRenderNotify(RenderDelegate)

註冊每次音訊圖形轉譯時要叫用的方法。

ClearConnections()

音訊處理圖表。

ConnnectNodeInput(Int32, UInt32, Int32, UInt32)

音訊處理圖表。

Create(Int32)

音訊處理圖表。

DisconnectNodeInput(Int32, UInt32)

音訊處理圖表。

Dispose()

釋放 AUGraph 物件所使用的資源。

Dispose(Boolean)

釋放 AUGraph 物件所使用的資源。

Finalize()

AUGraph 物件的完成項

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)

移除先前註冊的回呼,使其在每次轉譯音訊圖形時呼叫。

SetNodeInputCallback(Int32, UInt32, RenderDelegate)

音訊處理圖表。

Start()

啟動音訊圖表。

Stop()

音訊處理圖表。

TryOpen()

音訊處理圖表。

Update()

更新 AudioUnit 圖表的狀態。

適用於