BASSenc

BASS_Encode_SetPaused


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

BOOL BASS_Encode_SetPaused(
    DWORD handle,
    BOOL paused
);

Parameters

handleThe encoder or channel handle... a HENCODE, HSTREAM, HMUSIC, or HRECORD.
pausedPaused?

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.

Remarks

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