BASS.NET API for the Un4seen BASS Audio Library

BassBASS_ChannelPause Method

BASS.NET API for the Un4seen BASS Audio Library
Pauses a sample, stream, MOD music, or recording.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("bass")]
public static bool BASS_ChannelPause(
	int handle
)

Parameters

handle
Type: SystemInt32
The channel handle... a HCHANNEL / HMUSIC / HSTREAM / HRECORD handle.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

Use BASS_ChannelPlay(Int32, Boolean) to resume a paused channel. BASS_ChannelStop(Int32) can be used to stop a paused channel.

ERROR CODEDescription
BASS_ERROR_NOPLAYThe channel is not playing (or handle is not a valid channel).
BASS_ERROR_DECODEThe channel is not playable, it's a "decoding channel".
BASS_ERROR_ALREADYThe channel is already paused.

See Also

Reference