AudioMixerGroupFix
Automatically assigns vanilla Sound Effects / Ambience AudioMixerGroups to custom level AudioSources that forgot to set one, fixing volume sliders and REPOLib warnings.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:
REPOLibwarnings 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
AudioSourcealready has anAudioMixerGroup, it leaves it untouched forREPOLib. - If
outputAudioMixerGroupis null:- Names containing
loop distance,ambience, orambientreceiveSound/Ambience. - Names containing
musicreceiveMusic. - Everything else receives
Sound/Sound Effects.
- Names containing
Configuration (AudioMixerGroupFix.cfg)
General.EnableFix(default:true) — Enable/disable automatic fallback assignment.General.LogFixedObjects(default:false) — Log each fixedAudioSourceat Debug level.
