🟧
Sounds Good Documentation
English
English
  • Welcome!
  • FIRSTS STEPS
    • Create your first sound
  • Create and use audio outputs
  • Included Prefabs
  • Update from 1.0 to 2.0
  • DOCUMENTATION
    • Assemblies and Namespaces
    • Prefixes
    • Audio objects
      • Sound
        • Properties
        • Methods
      • Music
        • Properties
        • Methods
      • Playlist
        • Properties
        • Methods
      • DynamicMusic
        • Properties
        • Methods
    • Editor windows
      • Audio Creator
      • Audio Collection
      • Output Manager
    • SoundsGoodManager
  • Extras
    • Credits
    • Acknowledgments
Powered by GitBook
On this page
  • 📌 Summary table
  • 📘 Detailed description
  1. DOCUMENTATION

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

Method
Type
Brief description

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)

Adjusts the fader of the AudioMixerGroup linked to output and saves the value in PlayerPrefs.


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)

Applies a fade-out of fadeOutTime seconds and pauses all Sound, Music, Playlist, and DynamicMusic.


void Pause(string id, float fadeOutTime = 0)

Pauses the audio whose SetId("id") matches, with optional fade-out.


void ResumeAll(float fadeInTime = 0)

Resumes any paused audio, applying fade-in if specified.


void Resume(string id, float fadeInTime = 0)

Resumes the audio identified by id, provided it is paused.


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)

Stops the audio with the given id. Useful for loops or music you want to cut on demand.


PreviousOutput ManagerNextCredits

Last updated 16 days ago