GLBasic forum

Feature request => music/sound => Topic started by: FutureCow on 2008-Dec-16

Title: Global volume command
Post by: FutureCow on 2008-Dec-16
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.
Title: Re: Global volume command
Post by: Kitty Hello on 2008-Dec-16
Code: (glbasic) [Select]

GLOBAL gVol = 1.0

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

I do it this way.