User defined DSP callback function.
void CALLBACK YourDSPProc( |
Parameters
handle | The DSP handle. |
channel | Channel that the DSP is being applied to. |
buffer | The buffer to apply the DSP to. The sample data is in standard Windows PCM format... 8 bit samples are unsigned, 16 bit samples are signed. |
length | The number of BYTES to process. |
user | The user instance data given when BASS_ChannelSetDSP was called. |
Remarks
A DSP function should obviously be as quick as possible... streams, MOD musics and other DSP functions can not be processed until it has finished.
Example
A simple DSP callback function to swap the left/right channels of a 16-bit stereo source.
void CALLBACK MyDSPProc(HDSP handle, DWORD channel, void *buffer, DWORD length, DWORD user) { |
See also
BASS_ChannelSetDSP