Exemple #1
0
 public static extern int BASS_ChannelSetFX(int handle, BASSFXType type, int priority);
Exemple #2
0
        internal FX(int handle, BASSFXType type, int priority)
		{
            Priority = priority;
            _handle = handle;
			_type = type;
		}
Exemple #3
0
 public static extern int BASS_ChannelSetFX(int handle, BASSFXType type, int priority);
Exemple #4
0
 /// <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);
        }