BASS_ATTRIB_NORAMP attribute

Enable or disable playback ramping.

BASS_ChannelSetAttribute(
    DWORD handle,
    BASS_ATTRIB_NORAMP,
    float noramp
);

Parameters

handleThe channel handle.
norampEnable or disable playback ramping... 0 = enable ramping, 1 = disable ramping, 2 = disable ramping-in only, 3 = disable ramping-out only.

Remarks

By default, a channel will be ramped-in when starting playback and ramped-out when stopping/pausing playback, to avoid sudden level changes that could result in a click sound each time. That ramping can be disabled via this option. Volume (BASS_ATTRIB_VOL) and panning (BASS_ATTRIB_PAN) changes are always ramped regardless of this option setting. Ramping only applies during normal playback and does not affect decoding channels; it will not be present in the data delivered by BASS_ChannelGetData.

Ramping-in is skipped when a channel's sample data begins at a low level (below -42dB), and ramping-out is skipped when a channel is muted. Ramping-out requires data in the channel's playback buffer, so it generally does not apply when buffering has been disabled via the BASS_ATTRIB_BUFFER option unless the channel is a "push" stream or BASS_ChannelUpdate is used to pre-buffer some data.

This attribute can be set at any time, and changes take immediate effect. A channel's initial setting is determined by the BASS_CONFIG_NORAMP config option.

See also

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute, BASS_CONFIG_NORAMP