BASS_ChannelStop

Stops a sample, stream, MOD music, or CD channel.

BOOL WINAPI BASS_ChannelStop(
    DWORD handle
);

Parameters
handleThe channel handle... a HCHANNEL, HMUSIC, HSTREAM, or CDCHANNEL.

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.

Example
To stop the CD audio.

BASS_ChannelStop(CDCHANNEL);

See also
BASS_CDPlay, BASS_MusicPlay, BASS_MusicPlayEx, BASS_SamplePlay, BASS_SamplePlay3D, BASS_SamplePlay3DEx, BASS_SamplePlayEx, BASS_StreamPlay, BASS_SampleStop