You are viewing a potentially older version of this package. View all versions.
Factor-AudioMixerGroupFix-1.0.0 icon

AudioMixerGroupFix

Automatically assigns vanilla Sound Effects / Ambience AudioMixerGroups to custom level AudioSources that forgot to set one, fixing volume sliders and REPOLib warnings.

By Factor
Date uploaded a day ago
Version 1.0.0
Download link Factor-AudioMixerGroupFix-1.0.0.zip
Downloads 59
Dependency string Factor-AudioMixerGroupFix-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
Zehs-REPOLib-4.5.1 icon
Zehs-REPOLib

Library for adding content to R.E.P.O.

Preferred version: 4.5.1

README

AudioMixerGroupFix

Automatically assigns R.E.P.O.'s vanilla AudioMixerGroup (Sound/Sound Effects, Sound/Ambience, or Music) to custom level AudioSource components that were exported without an AudioMixerGroup assigned.

Why?

Some custom level prefabs contain AudioSource objects (such as Hinge Audio or Audio Loop Distance) with no AudioMixerGroup assigned, causing:

  • REPOLib warnings on level load (Failed to fix AudioMixerGroup on GameObject "...". No AudioMixerGroup is assigned.)
  • Those sounds bypassing R.E.P.O.'s in-game SFX / Ambience volume sliders.

How it works

Patches REPOLib.Extensions.AudioSourceExtensions.FixAudioMixerGroup with a lightweight Harmony prefix:

  • If an AudioSource already has an AudioMixerGroup, it leaves it untouched for REPOLib.
  • If outputAudioMixerGroup is null:
    • Names containing loop distance, ambience, or ambient receive Sound/Ambience.
    • Names containing music receive Music.
    • Everything else receives Sound/Sound Effects.

Configuration (AudioMixerGroupFix.cfg)

  • General.EnableFix (default: true) — Enable/disable automatic fallback assignment.
  • General.LogFixedObjects (default: false) — Log each fixed AudioSource at Debug level.

CHANGELOG

Changelog

1.0.0

  • Initial release.
  • Automatically assigns vanilla Sound/Sound Effects, Sound/Ambience, or Music AudioMixerGroup fallbacks when custom level prefabs leave an AudioSource unassigned.