BASS

BASS_CONFIG_GVOL_SAMPLE config option


The global sample volume level.

BASS_SetConfig(
    BASS_CONFIG_GVOL_SAMPLE,
    DWORD volume
);

Parameters

volumeSample global volume level... 0 (silent) to 10000 (full).

Remarks

This config option allows you to have control over the volume levels of all the samples, which is useful for setup options, eg. separate music and fx volume controls.

A channel's final volume = channel volume x global volume / 10000. For example, if a stream's volume is 0.5 and the global stream volume is 8000, then effectively the stream's volume level is 0.4 (0.5 x 8000 / 10000 = 0.4).

See also

BASS_GetConfig, BASS_SetConfig, BASS_ATTRIB_VOL, BASS_CONFIG_GVOL_MUSIC, BASS_CONFIG_GVOL_STREAM