VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
SoundManager Class Reference

Manages the sound of the game. More...

Inheritance diagram for SoundManager:
Collaboration diagram for SoundManager:

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

Detailed Description

Manages the sound of the game.

Member Function Documentation

◆ GetVCAVolume()

float SoundManager.GetVCAVolume ( SoundControllers targetVCA)
inline

◆ PauseAllSounds()

void SoundManager.PauseAllSounds ( )

Pauses ALL sounds in the game, use carefully and sparingly.

◆ PauseSoundGroup()

void SoundManager.PauseSoundGroup ( SoundGroups targetGroup)
inline

Pauses all sounds under the specified category.

◆ ResumeAllSounds()

void SoundManager.ResumeAllSounds ( )

Resume's all events that are paused.

◆ ResumeSoundGroup()

void SoundManager.ResumeSoundGroup ( SoundGroups targetGroup)
inline

Resumes all sounds under the specified category.

◆ SetVolume()

void SoundManager.SetVolume ( SoundControllers targetVCA,
float volume,
float maxSliderVal )
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]

Here is the caller graph for this function:

◆ StopAllSounds()

void SoundManager.StopAllSounds ( FMOD.Studio.STOP_MODE mode)

Stop all sounds playing.

◆ StopSoundGroup()

void SoundManager.StopSoundGroup ( SoundGroups targetGroup,
FMOD.Studio.STOP_MODE mode )
inline

Stops all sounds under the specified category.

Field Documentation

◆ Instance

SoundManager SoundManager.Instance
static

Event Documentation

◆ OnGamePaused

System.Action SoundManager.OnGamePaused
static

◆ OnGameResumed

System.Action SoundManager.OnGameResumed
static

The documentation for this class was generated from the following file: