SoundsGoodManager
SoundsGoodManager
exposes static methods that affect all audio played with Sounds Good.
It serves to:
Adjust audio output volumes at runtime.
Pause, resume, or stop any sound or music by its
id
or in bulk.Maintain an efficient
AudioSource
pool.Persist audio output volumes in
PlayerPrefs
.
📌 Summary table
ChangeOutputVolume(Output
, float
)
void
Adjusts the volume (0–1) of the specified output group.
ChangeOutputVolume(string
, float
)
void
Same as above, but by output name.
PauseAll(float
)
void
Pauses all sounds and music (fade-out
optional).
Pause(string
, float
)
void
Pauses the audio with the given id
.
ResumeAll(float
)
void
Resumes all paused audio (fade-in
optional).
Resume(string
, float
)
void
Resumes the audio with the given id
.
StopAll(float
)
void
Stops all audio (fade-out
optional).
Stop(string
, float
)
void
Stops the audio with the given id
. Useful for loops or music you want to cut on demand.
📘 Detailed description
void
ChangeOutputVolume(Output output, float value
)
void
ChangeOutputVolume(Output output, float value
)Adjusts the fader of the AudioMixerGroup
linked to output
and saves the value in PlayerPrefs
.
void
ChangeOutputVolume(string outputName, float value
)
void
ChangeOutputVolume(string outputName, float value
)Same operation, but using the exact group name (in case you don't want to depend on the enum Output
).
void
PauseAll(float fadeOutTime = 0
)
void
PauseAll(float fadeOutTime = 0
)Applies a fade-out
of fadeOutTime
seconds and pauses all Sound
, Music
, Playlist
, and DynamicMusic
.
void
Pause(string id, float fadeOutTime = 0
)
void
Pause(string id, float fadeOutTime = 0
)Pauses the audio whose SetId("id")
matches, with optional fade-out.
void
ResumeAll(float fadeInTime = 0
)
void
ResumeAll(float fadeInTime = 0
)Resumes any paused audio, applying fade-in
if specified.
void
Resume(string id, float fadeInTime = 0
)
void
Resume(string id, float fadeInTime = 0
)Resumes the audio identified by id
, provided it is paused.
void
StopAll(float fadeOutTime = 0
)
void
StopAll(float fadeOutTime = 0
)Stops (not just pauses) all audio; if fadeOutTime
> 0 it fades out before stopping.
void
Stop(string id, float fadeOutTime = 0
)
void
Stop(string id, float fadeOutTime = 0
)Stops the audio with the given id
. Useful for loops or music you want to cut on demand.
Last updated