Enables/disables processing of a channel.
BOOL BASS_ASIO_ChannelEnable(
BOOL input,
DWORD channel,
ASIOPROC *proc,
void *user
);
| input | Dealing with an input channel? FALSE = an output channel. |
| channel | The input/output channel number... 0 = first. |
| proc | The user defined function to process the channel... NULL = disable the channel. |
| user | User instance data to pass to the callback function. |
| BASS_ERROR_INIT | BASS_ASIO_Init has not been successfully called. |
| BASS_ERROR_START | The device has been started and the channel is not currently enabled. The device needs to be stopped before enabling the channel. |
| BASS_ERROR_ILLPARAM | The input and channel combination is invalid. |
Use BASS_ASIO_Start to begin processing the enabled channels. Enabled channels can be reconfigured after the device has been started, but other channels cannot be enabled without stopping the device first unless the BASS_ASIO_ALLINPUTS and/or BASS_ASIO_ALLOUTPUTS flags were set with BASS_ASIO_Init.
BASS channels can be used directly, without needing an ASIOPROC callback function, via BASS_ASIO_ChannelEnableBASS.
BASS_ASIO_ChannelEnable(FALSE, 0, MyAsioProc, 0);