Highroad Engine v1.3
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
MoreMountains.Tools.MMSoundManagerSettingsSO Class Reference

A class to save sound settings (music on or off, sfx on or off) More...

Inheritance diagram for MoreMountains.Tools.MMSoundManagerSettingsSO:

Public Member Functions

virtual void SaveSoundSettings ()
 Saves the sound settings to file More...
 
virtual void LoadSoundSettings ()
 Loads the sound settings from file (if found) More...
 
virtual void ResetSoundSettings ()
 Resets the sound settings by destroying the save file More...
 
virtual void SetTrackVolume (MMSoundManager.MMSoundManagerTracks track, float volume)
 sets the volume of the selected track to the value passed in parameters More...
 
virtual float GetTrackVolume (MMSoundManager.MMSoundManagerTracks track)
 Returns the volume of the specified track More...
 
virtual void GetTrackVolumes ()
 assigns the volume of each track to the settings values More...
 
virtual float NormalizedToMixerVolume (float normalizedVolume)
 Converts a normalized volume to the mixer group db scale More...
 
virtual float MixerVolumeToNormalized (float mixerVolume)
 Converts mixer volume to a normalized value More...
 

Public Attributes

AudioMixer TargetAudioMixer
 the audio mixer to use when playing sounds More...
 
AudioMixerGroup MasterAudioMixerGroup
 the master group More...
 
AudioMixerGroup MusicAudioMixerGroup
 the group on which to play all music sounds More...
 
AudioMixerGroup SfxAudioMixerGroup
 the group on which to play all sound effects More...
 
AudioMixerGroup UIAudioMixerGroup
 the group on which to play all UI sounds More...
 
float MixerValuesMultiplier = 20
 the multiplier to apply when converting normalized volume values to audio mixer values More...
 
MMSoundManagerSettings Settings
 the full settings for this MMSoundManager More...
 

Protected Member Functions

virtual void ApplyTrackVolumes ()
 applies volume to all tracks and saves if needed More...
 

Static Protected Attributes

const string _saveFolderName = "MMSoundManager/"
 
const string _saveFileName = "mmsound.settings"
 

Detailed Description

A class to save sound settings (music on or off, sfx on or off)

Member Function Documentation

◆ ApplyTrackVolumes()

virtual void MoreMountains.Tools.MMSoundManagerSettingsSO.ApplyTrackVolumes ( )
protectedvirtual

applies volume to all tracks and saves if needed

◆ GetTrackVolume()

virtual float MoreMountains.Tools.MMSoundManagerSettingsSO.GetTrackVolume ( MMSoundManager.MMSoundManagerTracks  track)
virtual

Returns the volume of the specified track

Parameters
track
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
mixerVolume
Returns

◆ NormalizedToMixerVolume()

virtual float MoreMountains.Tools.MMSoundManagerSettingsSO.NormalizedToMixerVolume ( float  normalizedVolume)
virtual

Converts a normalized volume to the mixer group db scale

Parameters
normalizedVolume
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()

virtual void MoreMountains.Tools.MMSoundManagerSettingsSO.SetTrackVolume ( MMSoundManager.MMSoundManagerTracks  track,
float  volume 
)
virtual

sets the volume of the selected track to the value passed in parameters

Parameters
track
volume

Member Data Documentation

◆ _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

the master group

◆ 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

MMSoundManagerSettings MoreMountains.Tools.MMSoundManagerSettingsSO.Settings

the full settings for this MMSoundManager

◆ 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: