BASS_ChannelPause

Pauses a sample, stream, MOD music, or recording.

BOOL BASS_ChannelPause(
    DWORD handle
);

Parameters

handleThe channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.

Return value

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

Error codes

BASS_ERROR_HANDLEhandle is not a valid channel.
BASS_ERROR_DECODEhandle is a decoding channel, so cannot be played or paused.
BASS_ERROR_NOPLAYThe channel is not playing.

Remarks

Use BASS_ChannelStart to resume a paused channel. BASS_ChannelStop can be used to stop a paused channel.

See also

BASS_ChannelIsActive, BASS_ChannelStart, BASS_ChannelStop