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 will be rounded down to a whole number.

Remarks

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

During playback, the effect of changes to this attribute are not heard instantaneously, due to buffering. To reduce the delay, use the BASS_CONFIG_BUFFER config option to reduce the buffer length.

See also

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute, BASS_ChannelSlideAttribute, BASS_ATTRIB_MUSIC_AMPLIFY