BASS_SetGlobalVolumes

Sets the global music/sample/stream volume levels.

void WINAPI BASS_SetGlobalVolumes(
    int musvol,
    int samvol,
    int strvol
);

Parameters
musvolMOD music global volume level... 0 (silent) - 100 (max), -1 = leave current.
samvolSample global volume level... 0 (silent) - 100 (max), -1 = leave current.
strvolStream global volume level... 0 (silent) - 100 (max), -1 = leave current.

Remarks
This function allows you to have control over the volume levels of all the MOD musics, samples and streams, which is useful for setup options (eg. seperate music and fx volume controls).

A channel's final volume = channel volume * global volume / 100. So, for example, if a stream channel's volume is 50 and the global stream volume is 80, then effectively the stream's volume level is 40 (50 * 80 / 100 = 40).

See also
BASS_GetGlobalVolumes, BASS_ChannelSetAttributes