Highroad Engine v1.3
|
A class to save sound settings (music on or off, sfx on or off) More...
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" |
A class to save sound settings (music on or off, sfx on or off)
|
protectedvirtual |
applies volume to all tracks and saves if needed
|
virtual |
Returns the volume of the specified track
track |
|
virtual |
assigns the volume of each track to the settings values
|
virtual |
Loads the sound settings from file (if found)
|
virtual |
Converts mixer volume to a normalized value
mixerVolume |
|
virtual |
Converts a normalized volume to the mixer group db scale
normalizedVolume |
|
virtual |
Resets the sound settings by destroying the save file
|
virtual |
Saves the sound settings to file
|
virtual |
sets the volume of the selected track to the value passed in parameters
track | |
volume |
|
staticprotected |
|
staticprotected |
AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.MasterAudioMixerGroup |
the master group
float MoreMountains.Tools.MMSoundManagerSettingsSO.MixerValuesMultiplier = 20 |
the multiplier to apply when converting normalized volume values to audio mixer values
AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.MusicAudioMixerGroup |
the group on which to play all music sounds
MMSoundManagerSettings MoreMountains.Tools.MMSoundManagerSettingsSO.Settings |
the full settings for this MMSoundManager
AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.SfxAudioMixerGroup |
the group on which to play all sound effects
AudioMixer MoreMountains.Tools.MMSoundManagerSettingsSO.TargetAudioMixer |
the audio mixer to use when playing sounds
AudioMixerGroup MoreMountains.Tools.MMSoundManagerSettingsSO.UIAudioMixerGroup |
the group on which to play all UI sounds