BASS_ChannelSetFX

BASS FX

BASS_ChannelSetFX

Sets up a DSP effect on a stream, MOD music, or recording channel.

HFX BASS_ChannelSetFX(
    DWORD handle,
    DWORD type,
    int priority
);

Parameters

handleThe channel handle... a HSTREAM, HMUSIC, or HRECORD
typeOne of the following types of effect:
  BASS_FX_BFX_ROTATE A channels volume ping-pong multi-channel
  BASS_FX_BFX_VOLUME Volumemulti-channel
  BASS_FX_BFX_PEAKEQ Peaking Equalizermulti-channel
  BASS_FX_BFX_MIX Swap, remap and mix channels multi-channel
  BASS_FX_BFX_DAMP Dynamic Amplificationmulti-channel
  BASS_FX_BFX_AUTOWAH Auto Wahmulti-channel
  BASS_FX_BFX_PHASER Phasermulti-channel
  BASS_FX_BFX_CHORUS Chorus/Flanger multi-channel
  BASS_FX_BFX_DISTORTION Distortionmulti-channel
  BASS_FX_BFX_COMPRESSOR2 Compressor multi-channel
  BASS_FX_BFX_VOLUME_ENV Volume envelope multi-channel
  BASS_FX_BFX_BQF BiQuad filters multi-channel
  BASS_FX_BFX_ECHO4 Echo/Reverb multi-channel
  BASS_FX_BFX_PITCHSHIFT Pitch shift using FFT multi-channel
  BASS_FX_BFX_FREEVERB Reverb using "Freeverb" algorithm multi-channel
priorityThe priority of the new DSP, which determines its position in the DSP chain. DSPs with higher priority are called before those with lower priority

Return value
If successful, then the new effect's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLE handle is not a valid channel
BASS_ERROR_ILLTYPE

type is invalid. Note BASS_FX must be loaded before these effects can be used (call BASS_FX_GetVersion on project load).

BASS_ERROR_FORMAT

The selected effect could be applied only on stereo or mono handle


BASS_ChannelRemoveFX, BASS_FXSetParameters, BASS_FXGetParameters, BASS_FXReset