Add audio multipliers back (#22260)

This commit is contained in:
metalgearsloth
2023-12-09 15:18:15 +11:00
committed by GitHub
parent 6fabc74f94
commit b72c8553d8
2 changed files with 29 additions and 21 deletions

View File

@@ -20,6 +20,18 @@ public sealed partial class ContentAudioSystem : SharedContentAudioSystem
private const float MinVolume = -32f;
private const float DefaultDuration = 2f;
/*
* Gain multipliers for specific audio sliders.
* The float value will get multiplied by this when setting
* i.e. a gain of 0.5f x 3 will equal 1.5f which is supported in OpenAL.
*/
public const float MasterVolumeMultiplier = 3f;
public const float MidiVolumeMultiplier = 0.25f;
public const float AmbienceMultiplier = 3f;
public const float AmbientMusicMultiplier = 3f;
public const float LobbyMultiplier = 3f;
public override void Initialize()
{
base.Initialize();