public virtual bool Run(float[][] inputs, float[][] outputs) { if (handle == IntPtr.Zero) { return(false); } if (LadspaDescriptor.Run == null) { return(false); } if (!active) { Activate(); } CopyInputs(inputs); LadspaDescriptor.Run(handle, (uint)bufferSize); CopyOutputs(outputs); return(true); }
public bool Run(float[][] outputs) { if (handle != IntPtr.Zero) { if (DssiDescriptor.RunSynth != null) { PrepareEvents(); DssiDescriptor.RunSynth(handle, (uint)bufferSize, eventBuffer, (uint)eventBufferCount); CopyOutputs(outputs); return(true); } else if (LadspaDescriptor.Run != null) { LadspaDescriptor.Run(handle, (uint)bufferSize); CopyOutputs(outputs); return(true); } } if (eventList.Count > 0) { eventList.Clear(); } return(false); }