SlashCo Wiki

SlashCo.AudioSystem.GetBackgroundMusicVolumeControlled

 number SlashCo.AudioSystem.GetBackgroundMusicVolumeControlled( number fallback = 1 )

Description

Returns the current volume of the background music but unlike SlashCo.AudioSystem.GetBackgroundMusicVolume this function will respect the ConVar value of snd_musicvolume (The GMod Settings Music volume slider) while being in the Lobby.
In a round it will return the same volume as SlashCo.AudioSystem.GetBackgroundMusicVolume

Arguments

1number fallback = 1

The fallback volme to return if there currently is none

Returns

1number volume