BASS_Encode_IsActive

Checks if an encoder is running.

DWORD BASS_Encode_IsActive(
    DWORD handle
);

Parameters

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

Return value

The return value is one of the following.
BASS_ACTIVE_STOPPEDThe encoder isn't running.
BASS_ACTIVE_PLAYINGThe encoder is running.
BASS_ACTIVE_PAUSEDThe encoder is paused.

Remarks

When checking if there's an encoder running on a channel, and there are multiple encoders on the channel, BASS_ACTIVE_PLAYING will be returned if any of them are active.

If an encoder stops running prematurely, BASS_Encode_Stop should still be called to release resources that were allocated for the encoding.

See also

BASS_Encode_GetCount, BASS_Encode_SetNotify, BASS_Encode_SetPaused, BASS_Encode_Stop