Sets up a user DSP function on a MOD music or file stream channel.
HDSP WINAPI BASS_ChannelSetDSP( |
Parameters
handle | The channel handle... a HMUSIC or HSTREAM. |
proc | The callback function. |
user | User instance data to pass to the callback function. |
Return value
If succesful, then the new DSP'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. |
Remarks
The channel does not have to be playing to set a DSP function, you can set DSP functions before or while playing. Equally, you can also remove them at any time. Multiple DSP functions may be used per channel, in which case the functions are called in the order that they were added. Use BASS_ChannelRemoveDSP to remove a DSP function.
DSP functions can be applied to MOD musics and streams, but not samples. If you want to apply a DSP function to a sample, then you should stream the sample.
See also
BASS_ChannelRemoveDSP, DSPPROC callback