Sets an effect on a stream, MOD music, or recording channel.
|handle||The channel handle... a HSTREAM, HMUSIC, or HRECORD.
|type||One of the following types of effect.|
other effects may be supported by add-ons, eg. BASS_FX.
|BASS_FX_DX8_CHORUS||DX8 Chorus. Use BASS_DX8_CHORUS structure to set/get parameters.
|BASS_FX_DX8_COMPRESSOR||DX8 Compression. Use BASS_DX8_COMPRESSOR structure to set/get parameters.
|BASS_FX_DX8_DISTORTION||DX8 Distortion. Use BASS_DX8_DISTORTION structure to set/get parameters.
|BASS_FX_DX8_ECHO||DX8 Echo. Use BASS_DX8_ECHO structure to set/get parameters.
|BASS_FX_DX8_FLANGER||DX8 Flanger. Use BASS_DX8_FLANGER structure to set/get parameters.
|BASS_FX_DX8_GARGLE||DX8 Gargle. Use BASS_DX8_GARGLE structure to set/get parameters.
|BASS_FX_DX8_I3DL2REVERB||DX8 I3DL2 (Interactive 3D Audio Level 2) reverb. Use BASS_DX8_I3DL2REVERB structure to set/get parameters.
|BASS_FX_DX8_PARAMEQ||DX8 Parametric equalizer. Use BASS_DX8_PARAMEQ structure to set/get parameters.
|BASS_FX_DX8_REVERB||DX8 Reverb. Use BASS_DX8_REVERB structure to set/get parameters.
|priority||The priority of the new FX, which determines its position in the DSP chain. DSP/FX with higher priority are applied before those with lower. This parameter has no effect with DX8 effects when the "with FX flag" DX8 effect implementation is used.
If successful, then the new effect's handle is returned, else 0 is returned. Use BASS_ErrorGetCode to get the error code.
|BASS_ERROR_HANDLE||handle is not a valid channel.
|BASS_ERROR_ILLTYPE||type is invalid.
|BASS_ERROR_NOFX||The specified DX8 effect is unavailable.
|BASS_ERROR_FORMAT||The channel's format is not supported by the effect.
|BASS_ERROR_UNKNOWN||Some other mystery problem!
Multiple effects may be used per channel. Use BASS_ChannelRemoveFX to remove an effect. Use BASS_FXSetParameters to set an effect's parameters. An effect's priority value can be changed via BASS_FXSetPriority.
Effects can be applied to MOD musics and streams, but not samples. If you want to apply an effect to a sample, you could use a stream instead.
Depending on the DX8 effect implementation being used by the channel, the channel may have to be stopped before adding or removing DX8 effects on it. If necessary, that is done automatically and the channel is resumed afterwards.
DX8 effects are a Windows feature requiring DirectX 8, or DirectX 9 for floating-point support. On other platforms, they are emulated by BASS, except for the following which are currently unsupported: COMPRESSOR, GARGLE, and I3DL2REVERB.
BASS_ChannelLock, BASS_ChannelRemoveFX, BASS_FXGetParameters, BASS_FXReset, BASS_FXSetParameters, BASS_FXSetPriority, BASS_ChannelSetDSP, BASS_CONFIG_FLOATDSP, DX8 effect implementations