BASS_ASIO_ChannelPause


Suspends processing of a channel.

BOOL BASS_ASIO_ChannelPause(
    BOOL input,
    DWORD channel
);

Parameters

inputDealing with an input channel? FALSE = an output channel.
channelThe input/output channel number... 0 = first.

Return value

If successful, then TRUE is returned, else FALSE is returned. Use BASS_ASIO_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_INITBASS_ASIO_Init has not been successfully called.
BASS_ERROR_ILLPARAMThe input and channel combination is invalid.

Remarks

Channels can only be disabled when the device is stopped. When wanting to stop processing of only some of the enabled channels, you could quickly stop the device, disable the unwanted channels, and restart the device. But that could cause a slight break in the sound of the remaining channels. Another option is to pause the unwanted channels, using this function.

Use BASS_ASIO_ChannelReset to resume processing of a paused channel.

See also

BASS_ASIO_ChannelIsActive, BASS_ASIO_ChannelReset, BASS_ASIO_Stop, ASIOPROC callback