BASS_ATTRIB_VOLDSP_PRIORITY attribute

The priority of the volume DSP.

BASS_ChannelSetAttribute(
    DWORD handle,
    BASS_ATTRIB_VOLDSP_PRIORITY,
    float priority
);

Parameters

handleThe channel handle.
priorityThe priority... -2147483648 (min) to 2147483647 (max). This attribute is an integer (floating-point values will be truncated).

Remarks

This attribute determines where in the DSP chain the BASS_ATTRIB_VOLDSP attribute is applied; its effect will not be present in the data received by DSP functions with a higher priority.

32-bit floating-point cannot precisely hold values exceeding +/-16777216. BASS_ChannelSetAttributeEx and BASS_ChannelGetAttributeEx (with BASS_ATTRIBTYPE_INT) can be used instead of BASS_ChannelSetAttribute and BASS_ChannelGetAttribute to deal with such large values precisely.

The default value is 2147483647 (max). Changes take immediate effect.

Example

Set a channel's DSP chain volume priority to 20.
int priority = 20;
BASS_ChannelSetAttributeEx(handle, BASS_ATTRIB_VOLDSP_PRIORITY, &priority, BASS_ATTRIBTYPE_INT);

See also

BASS_ChannelGetAttribute, BASS_ChannelGetAttributeEx, BASS_ChannelSetAttribute, BASS_ChannelSetAttributeEx, BASS_ATTRIB_VOLDSP