AKEnginePatches.cs 616 B

123456789101112131415161718
  1. using Il2Cpp;
  2. using MelonLoader;
  3. using UnityEngine;
  4. namespace AudioMgr
  5. {
  6. [HarmonyLib.HarmonyPatch(typeof(AkSoundEngine), "SetGameObjectOutputBusVolume", new Type[] {typeof(GameObject), typeof(GameObject), typeof(float) })]
  7. public class BusVolumePatch
  8. {
  9. public static void Prefix(ref AkSoundEngine __instance, ref GameObject in_emitterObjID, ref GameObject in_listenerObjID, ref float in_fControlValue)
  10. {
  11. if (AudioMain._debug)
  12. MelonLogger.Msg("AK emitter: " + in_emitterObjID.name + "; value: " + in_fControlValue);
  13. }
  14. }
  15. }