public Effects(int coreHandle) { handle = coreHandle; bool loadbassfx = BassFx.Load(); _myDSPAddr = new DSPProcedure(SetPreamp); }
public void Dispose() { Bass.ChannelRemoveDSP(Channel, DSPHandle); IsAssigned = false; Channel = DSPHandle = Priortity = 0; DSPProc = null; }
public Effects(int coreHandle) { handle = coreHandle; bool loadbassfx = BassFx.Load(); _myDSPAddr = new DSPProcedure(SetPreamp); Bass.ChannelSetDSP(handle, _myDSPAddr, IntPtr.Zero, 0); InitializeEqualizer(); }
public void ReInit(int coreHandle) { DeInit(); _handle = coreHandle; //var version = BassFx.Version; _myDspAddr = SetPreamp; Bass.ChannelSetDSP(_handle, _myDspAddr, IntPtr.Zero, 0); Init(); }
public DSP(IEffectAssignable IEA, int Priority = 0) { Channel = IEA.Handle; DSPProc = new DSPProcedure(OnDSP); this.Priortity = Priortity; DSPHandle = Bass.ChannelSetDSP(Channel, DSPProc, IntPtr.Zero, Priority); IEA.Disposed += (s, e) => Dispose(); if (DSPHandle != 0) { IsAssigned = true; } else { throw new InvalidOperationException("DSP Assignment Failed"); } }
public Effects(int coreHandle) { handle = coreHandle; _myDSPAddr = new DSPProcedure(MyDSPGain); }
public static extern int ChannelSetDSP(int Handle, DSPProcedure Procedure, IntPtr User = default(IntPtr), int Priority = 0);