REPOAudioFixer

版本 v1.0.1·更新於 2026-05-06

Improves 3D audio with occlusion, directional sound, and smoother spatial behavior.

模組介紹 作者原文

Audio Rework

Audio Rework is a lightweight audio enhancement mod that improves how 3D sounds behave in-game. It adds occlusion (sounds being blocked by objects), directional awareness, and smoother spatial audio transitions using runtime hooks.

Features

  • Occlusion
  • Sounds are reduced in volume and clarity when blocked by objects between the player and the source.
  • Uses multiple raycasts to estimate how obstructed a sound is.
  • Directional Audio
  • Sounds behind the player are more muffled than those in front.
  • Uses the camera’s forward direction to determine how sound should be affected.
  • Diffraction (Corner Behavior)
  • Prevents sounds from being completely cut off when slightly obstructed.
  • Allows partial “wrapping” of sound around edges.
  • Stereo Panning
  • Adjusts left/right balance based on where the sound is relative to the player.
  • Helps with spatial awareness.
  • Low-Pass Filtering
  • Applies a filter to reduce high frequencies when sounds are obstructed, creating a muffled effect.

How It Works

  • Hooks into audio playback using Harmony.
  • When a 3D AudioSource plays, the mod attaches a handler component.
  • Each active sound:
  • Casts rays from the player to the sound source.
  • Calculates how many rays are blocked.
  • Adjusts volume and filter cutoff based on obstruction.
  • Applies directional and stereo effects.

Configuration

All settings are configurable via the generated config file.

General

Ray Count (int, default: 7)

Number of rays cast between the player and the sound source.

  • Higher values:
  • More accurate occlusion
  • Higher performance cost
  • Lower values:
  • Less accurate
  • Better performance

Min Volume (float, default: 0.25)

The lowest volume a sound can reach when fully occluded.

  • 1.0 = no volume reduction
  • 0.0 = completely silent when blocked

Max Cutoff (float, default: 22000)

Maximum low-pass filter frequency (clear sound).

  • Higher values = less filtering
  • Typically should remain at default

Min Cutoff (float, default: 1200)

Minimum low-pass filter frequency (muffled sound).

  • Lower values = more muffled audio
  • Higher values = less noticeable occlusion

Smoothing Speed (float, default: 5)

Controls how quickly audio transitions between states.

  • Higher values:
  • Faster response
  • More abrupt changes
  • Lower values:
  • Smoother transitions
  • Slight delay in response

Direction Strength (float, default: 1.8)

Controls how strongly sound is affected based on whether it is in front of or behind the player.

  • 1.0 = minimal directional effect
  • Higher values = stronger muffling behind the player

Diffraction Softness (float, default: 0.2)

Controls how much sound “wraps” around obstacles.

  • Higher values:
  • Less harsh cutoffs
  • More audible around corners
  • Lower values:
  • Sharper occlusion
  • More realistic blocking

Ear Responsiveness (float, default: 5)

Controls how quickly stereo panning updates.

  • Higher values:
  • Faster left/right changes
  • Lower values:
  • Smoother but slower response

Notes

  • Only affects 3D audio sources (UI and 2D sounds are ignored).
  • Uses Unity object tags (Glass, Wood, Metal) to adjust occlusion strength.
  • If tags are not present, a default value is used.
  • Designed to run efficiently by attaching only to active audio sources.

Compatibility

  • Client-side only
  • Does not modify game files directly
  • Should work with most mods unless they heavily modify audio systems

Known Limitations

  • Material-based occlusion depends on object tags being set correctly.
  • Some audio sources may not be affected if they use non-standard playback methods.
  • Performance may vary depending on the number of active sound sources and ray count.

License

This project is provided as-is for personal use and modification.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
REPOAudioFixer-1.0.1.zip
檔案大小
91.9 KiB