BASS_Encode_Stop

Frees an encoder or all encoders on a channel.

BOOL BASS_Encode_Stop(
    DWORD handle
);

Parameters

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.

Remarks

This function will free an encoder immediately, without waiting for any data that may be remaining in the queue. BASS_Encode_StopEx can be used to have an encoder process the queue before it is freed.

See also

BASS_Encode_Start, BASS_Encode_StopEx