Manages the sound of the game. More...
Public Member Functions | |
void | SetVolume (SoundControllers targetVCA, float volume, float maxSliderVal) |
void | StopAllSounds (FMOD.Studio.STOP_MODE mode) |
Stop all sounds playing. | |
void | PauseAllSounds () |
Pauses ALL sounds in the game, use carefully and sparingly. | |
void | ResumeAllSounds () |
Resume's all events that are paused. | |
void | StopSoundGroup (SoundGroups targetGroup, FMOD.Studio.STOP_MODE mode) |
Stops all sounds under the specified category. | |
void | PauseSoundGroup (SoundGroups targetGroup) |
Pauses all sounds under the specified category. | |
void | ResumeSoundGroup (SoundGroups targetGroup) |
Resumes all sounds under the specified category. | |
float | GetVCAVolume (SoundControllers targetVCA) |
Static Public Attributes | |
static SoundManager | Instance |
Events | |
static System.Action | OnGamePaused |
static System.Action | OnGameResumed |
Manages the sound of the game.
|
inline |
void SoundManager.PauseAllSounds | ( | ) |
Pauses ALL sounds in the game, use carefully and sparingly.
|
inline |
Pauses all sounds under the specified category.
void SoundManager.ResumeAllSounds | ( | ) |
Resume's all events that are paused.
|
inline |
Resumes all sounds under the specified category.
|
inline |
Sets the volume of the controller. Where maxSliderVal is the maximum value of your slider.
if the range is [0,1]. Then [1 = Full volume] [0.5 = Half Volume] [0 = Silent]
void SoundManager.StopAllSounds | ( | FMOD.Studio.STOP_MODE | mode | ) |
Stop all sounds playing.
|
inline |
Stops all sounds under the specified category.
|
static |
|
static |
|
static |