BASS_FXSetPriority


Sets the priority of an effect or DSP function, which determines its position in the DSP chain.

BOOL BASS_FXSetPriority(
    DWORD handle,
    int priority
);

Parameters

handleThe DSP/FX handle... a HDSP or HFX.
priorityThe new priority of the DSP/FX.

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 invalid.
BASS_ERROR_NOTAVAILPriority is not supported on DX8 effects when the "with FX flag" DX8 effect implementation is used.

Remarks

If there are multiple DSP/FX with the same priority value, they will be applied in the order in which they were given that priority.

See also

BASS_ChannelSetDSP, BASS_ChannelSetFX