public static extern int BASS_ChannelSetFX(int handle, BASSFXType type, int priority);
internal FX(int handle, BASSFXType type, int priority) { Priority = priority; _handle = handle; _type = type; }
public static extern int BASS_ChannelSetFX(int handle, BASSFXType type, int priority);
/// <summary> /// Sets an effect on the current channel. /// </summary> /// <param name="type">Effect type</param> /// <param name="priority">Effect priority</param> /// <returns>Effect handle</returns> public int SetFX(BASSFXType type, int priority) { return Bass.BASS_ChannelSetFX(handle, type, priority); }
public FX SetFX(BASSFXType chanfx, int priority) { if (_disposed) throw new ObjectDisposedException(ToString()); int fx = Bass.BASS_ChannelSetFX(Handle, chanfx, priority); if (fx == 0) throw new BASSException(); return new FX(fx, chanfx, priority); }