BASS_Encode_SetPriority

Sets the priority of an encoder, which determines its position in the source channel's DSP chain.

BOOL BASS_Encode_SetPriority(
    DWORD handle,
    int priority
);

Parameters

handleThe encoder handle.
priorityThe new DSP priority.

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.
BASS_ERROR_NOTAVAILThe encoder does not have a source channel.

Remarks

An encoder's initial priority is determined by the BASS_CONFIG_ENCODE_PRIORITY config option.

See also

BASS_Encode_SetChannel, BASS_CONFIG_ENCODE_PRIORITY