BASS_CONFIG_ENCODE_TERMINATE config option

The time to wait for a command-line encoder to finish before terminating it.

BASS_SetConfig(
    BASS_CONFIG_ENCODE_TERMINATE,
    DWORD timeout
);

Parameters

timeoutThe timeout in milliseconds.

Remarks

This option determines how long a command-line encoder process (eg. started by BASS_Encode_Start) has to finish up, before being forcefully terminated. BASS_Encode_SetNotify can be used to get notified when that happens. If the encoder is writing a file then terminating it may result in an incomplete file.

The default timeout is 5000 milliseconds. Changes take effect from the next BASS_Encode_Stop or BASS_Encode_StopEx call (or auto-freeing due to BASS_ENCODE_AUTOFREE flag). The setting can be overridden on individual encoders with BASS_Encode_StopEx.

See also

BASS_Encode_Stop, BASS_Encode_StopEx

BASS_GetConfig, BASS_SetConfig