Global volume command

Previous topic - Next topic

FutureCow

Sorry if this exists and I have missed it, but I'd like to have a global volume sound that adjusts the volume of all loaded sounds automatically.

Kitty Hello

Code (glbasic) Select


GLOBAL gVol = 1.0


...
SoundVolume = 0.7
PLAYSOUND(mysound, pan, gVol * SoundVolume);

...

I do it this way.