BASS_ChannelSetFX
From BASS FX
BASS_ChannelSetFX
Sets up a DSP effect on a stream, MOD music, or recording channel.
HFX BASS_ChannelSetFX( |
Parameters
| handle | The channel handle... a HSTREAM, HMUSIC, or HRECORD | |||||||||||||||||||||||||||||||||||||||||||||
| type | One of the following types of effect:
| |||||||||||||||||||||||||||||||||||||||||||||
| priority | The 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