Пример #1
0
        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
 static extern AUGraphError AUGraphSetNodeInputCallback(IntPtr inGraph, int /* AUNode = SInt32 */ inDestNode, uint /* UInt32 */ inDestInputNumber, ref AURenderCallbackStruct inInputCallback);