Factor-AudioMixerGroupFix 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
Last updated an hour ago
Total downloads 9
Total rating 0 
Categories Mods Misc Audio Client-side AI Generated
Dependency string Factor-AudioMixerGroupFix-1.0.0
Dependants 0 other packages depend on this package

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.