Create and use audio outputs

This quick guide shows you how to:

  1. Create a new group in your AudioMixer.

  2. Expose its volume so that Sounds Good can control it.

  3. Update the output database.

  4. Assign the output in code and adjust its volume at runtime.


🛠️ Step-by-step

  1. Open the Output Manager

    • Tools â–¸ Melenitas Dev â–¸ Sounds Good â–¸ Output Manager

    • Click Create New Output Guide.

  2. Create the group in the Audio Mixer

    1. Click Open Audio Mixer Window.

    2. In the Groups panel, right-click Master â–¸ Add Child Group.

    3. Name it without spaces (e.g. VoiceChat).

  3. Expose the parameter

    1. Select the new group.

    2. In the Inspector, right-click the Volume fader ▸ Expose ‣ To Script.

    3. In Exposed Parameters, rename MyExposedParam so it matches the group name exactly (VoiceChat).

  4. Update the database

    • Return to Output Manager and click Done, update database (or simply Update).

    • Your new output (VoiceChat) will appear with its own slider.

  5. Test it in code

    // Play a sound through the new channel
    new Sound(SFX.RadioBeep)
        .SetOutput(Output.Voicechat)   // already available in the enum!
        .Play();
    
    // Set the global volume of the channel to 60 %
    SoundsGoodManager.ChangeOutputVolume(Output.Voicechat, 0.6f);

    🔄 Output levels are saved in PlayerPrefs; Sounds Good reloads them on startup.

Last updated