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

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 with BASS_ASIO_RESET_PAUSE to resume processing of a paused channel.

See also

BASS_ASIO_ChannelIsActive, BASS_ASIO_ChannelReset