BASS_ATTRIB_MUSIC_VOL_GLOBAL attribute

The global volume level of a MOD music.

BASS_ChannelSetAttribute(
    HMUSIC handle,
    BASS_ATTRIB_MUSIC_VOL_GLOBAL,
    float volume
);

Parameters

handleThe MOD music handle.
volumeThe global volume level... 0 (min) to 64 (max, 128 for IT format). This attribute is an integer (floating-point values will be truncated).

Remarks

This attribute is a direct mapping of the MOD music's global volume, so the value can subsequently be changed by effects in the file itself.

During playback, the effect of changes to this attribute are not heard instantaneously, due to buffering. This latency can be reduced via the BASS_ATTRIB_BUFFER attribute.

See also

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute, BASS_ChannelSlideAttribute, BASS_ATTRIB_MUSIC_AMPLIFY