BASS_ASIO_ChannelPause

Suspends processing of a channel (or all channels).

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, -1 = all channels.

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. 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. That can be avoided by just pausing the unwanted channels using this function instead.

When pausing all channels (channel = -1), it only applies to all channels of the specified type, ie. input or output, not both.

Use BASS_ASIO_ChannelReset to resume processing of a paused channel.

See also

BASS_ASIO_ChannelIsActive, BASS_ASIO_ChannelReset, BASS_ASIO_Stop, ASIOPROC callback