A class to save sound settings (music on or off, sfx on or off)
More...
A class to save sound settings (music on or off, sfx on or off)
◆ ApplyTrackVolumes()
| virtual void MoreMountains.Tools.MMSoundManagerSettingsSO.ApplyTrackVolumes |
( |
| ) |
|
|
protectedvirtual |
applies volume to all tracks and saves if needed
◆ GetTrackVolume()
Returns the volume of the specified track.
- Parameters
-
- Returns
◆ GetTrackVolumes()
| virtual void MoreMountains.Tools.MMSoundManagerSettingsSO.GetTrackVolumes |
( |
| ) |
|
|
virtual |
assigns the volume of each track to the settings values
◆ LoadSoundSettings()
| virtual void MoreMountains.Tools.MMSoundManagerSettingsSO.LoadSoundSettings |
( |
| ) |
|
|
virtual |
Loads the sound settings from file (if found)
◆ MixerVolumeToNormalized()
| virtual float MoreMountains.Tools.MMSoundManagerSettingsSO.MixerVolumeToNormalized |
( |
float | mixerVolume | ) |
|
|
virtual |
Converts mixer volume to a normalized value.
- Parameters
-
- Returns
◆ NormalizedToMixerVolume()
| virtual float MoreMountains.Tools.MMSoundManagerSettingsSO.NormalizedToMixerVolume |
( |
float | normalizedVolume | ) |
|
|
virtual |
Converts a normalized volume to the mixer group db scale.
- Parameters
-
- Returns
◆ ResetSoundSettings()
| virtual void MoreMountains.Tools.MMSoundManagerSettingsSO.ResetSoundSettings |
( |
| ) |
|
|
virtual |
Resets the sound settings by destroying the save file.
◆ SaveSoundSettings()
| virtual void MoreMountains.Tools.MMSoundManagerSettingsSO.SaveSoundSettings |
( |
| ) |
|
|
virtual |
Saves the sound settings to file.
◆ SetTrackVolume()
sets the volume of the selected track to the value passed in parameters
- Parameters
-
◆ _saveFileName
| const string MoreMountains.Tools.MMSoundManagerSettingsSO._saveFileName = "mmsound.settings" |
|
staticprotected |
◆ _saveFolderName
| const string MoreMountains.Tools.MMSoundManagerSettingsSO._saveFolderName = "MMSoundManager/" |
|
staticprotected |
◆ MasterAudioMixerGroup
| AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.MasterAudioMixerGroup |
◆ MixerValuesMultiplier
| float MoreMountains.Tools.MMSoundManagerSettingsSO.MixerValuesMultiplier = 20 |
the multiplier to apply when converting normalized volume values to audio mixer values
◆ MusicAudioMixerGroup
| AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.MusicAudioMixerGroup |
the group on which to play all music sounds
◆ Settings
◆ SfxAudioMixerGroup
| AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.SfxAudioMixerGroup |
the group on which to play all sound effects
◆ TargetAudioMixer
| AudioMixer MoreMountains.Tools.MMSoundManagerSettingsSO.TargetAudioMixer |
the audio mixer to use when playing sounds
◆ UIAudioMixerGroup
| AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.UIAudioMixerGroup |
the group on which to play all UI sounds
The documentation for this class was generated from the following file: