Pauses or resumes an encoder, or all encoders on a channel.

BOOL BASS_Encode_SetPaused(
    DWORD handle,
    BOOL paused


handleThe encoder or channel handle... a HENCODE, HSTREAM, HMUSIC, 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 valid.


When an encoder is paused, no sample data will be sent to the encoder automatically via the DSP system. Data can still be sent to the encoder manually though, via the BASS_Encode_Write function.

See also

BASS_Encode_IsActive, BASS_Encode_Start, BASS_Encode_Stop