Master Volume?

Blitz3D Forums/Blitz3D Programming/Master Volume?

RustyKristi(Posted 2016) [#1]
I'm trying to look for Master Volume functionality but it looks like the only available is SoundVolume which is per sound.

Is there another way?


wmaass(Posted 2016) [#2]
Just popping in, so real quick - don't know if this helps, see below:

http://www.blitzbasic.com/b3ddocs/command.php?name=ChannelVolume&ref=2d_cat

Also, for a project done some years ago I recall doing a "fake" master volume. You create a master volume variable and multiply it with the settings of individual sounds. For example:

masterVol = 0.5
rainSoundVol = 1.0 * masterVol
musicVol = 0.7 * masterVol

So in this case musicVol would play at 0.35 and rainSoundVol at 0.5.


RustyKristi(Posted 2016) [#3]
thanks wmaass. this looks like the way to go. I'm also trying out tinkering with channelvolume