Exemplo n.º 1
0
        public AudioUnitStatus SetRenderCallback(RenderDelegate renderDelegate, AudioUnitScopeType scope, uint audioUnitElement = 0)
        {
            var cb = new AURenderCallbackStruct();

            cb.Proc       = CreateRenderCallback;
            cb.ProcRefCon = GCHandle.ToIntPtr(gcHandle);

            this.render = renderDelegate;

            return(AudioUnitSetProperty(handle, AudioUnitPropertyIDType.SetRenderCallback, scope, audioUnitElement, ref cb, Marshal.SizeOf(cb)));
        }
Exemplo n.º 2
0
 static extern AUGraphError AUGraphSetNodeInputCallback(IntPtr inGraph, int inDestNode, uint inDestInputNumber, ref AURenderCallbackStruct inInputCallback);
Exemplo n.º 3
0
		static extern AudioUnitStatus AudioUnitSetProperty (IntPtr inUnit, AudioUnitPropertyIDType inID, AudioUnitScopeType inScope, uint inElement,
						       ref AURenderCallbackStruct inData, int inDataSize);
Exemplo n.º 4
0
		public AudioUnitStatus SetRenderCallback (RenderDelegate renderDelegate, AudioUnitScopeType scope, uint audioUnitElement = 0)
		{
			var cb = new AURenderCallbackStruct ();
			cb.Proc = CreateRenderCallback;
			cb.ProcRefCon = GCHandle.ToIntPtr (gcHandle);

			this.render = renderDelegate;

			return AudioUnitSetProperty (handle, AudioUnitPropertyIDType.SetRenderCallback, scope, audioUnitElement, ref cb, Marshal.SizeOf (cb));
		}
Exemplo n.º 5
0
 static extern AudioUnitStatus AudioUnitSetProperty(IntPtr inUnit, AudioUnitPropertyIDType inID, AudioUnitScopeType inScope, uint inElement,
                                                    ref AURenderCallbackStruct inData, int inDataSize);
Exemplo n.º 6
0
 static extern AUGraphError AUGraphSetNodeInputCallback(IntPtr inGraph, int inDestNode, uint inDestInputNumber, ref AURenderCallbackStruct inInputCallback);