コード例 #1
0
ファイル: AUGraph.cs プロジェクト: sbomer/xamarin-macios
        public AUGraphError SetNodeInputCallback(int destNode, uint destInputNumber, RenderDelegate renderDelegate)
        {
            if (nodesCallbacks == null)
            {
                nodesCallbacks = new Dictionary <uint, RenderDelegate> ();
            }

            nodesCallbacks [destInputNumber] = renderDelegate;

            var cb = new AURenderCallbackStruct();

            cb.Proc       = CreateRenderCallback;
            cb.ProcRefCon = GCHandle.ToIntPtr(gcHandle);
            return(AUGraphSetNodeInputCallback(handle, destNode, destInputNumber, ref cb));
        }
コード例 #2
0
ファイル: AUGraph.cs プロジェクト: sbomer/xamarin-macios
 static extern AUGraphError AUGraphSetNodeInputCallback(IntPtr inGraph, int /* AUNode = SInt32 */ inDestNode, uint /* UInt32 */ inDestInputNumber, ref AURenderCallbackStruct inInputCallback);