Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(verse): add the audio framework, layered sounds and the loudness gate (#1131)

Ruben Lütke6bb606e2ec42
diff --git a/art/verse/LICENSES.md b/art/verse/LICENSES.md
index 7c7b769216..ee7ed5906d 100644
--- a/art/verse/LICENSES.md
+++ b/art/verse/LICENSES.md
@@ -12,3 +12,21 @@ Every third-party file used by the Verse cook. CC0 only. Append-only.
| painted_concrete_02 (https://polyhaven.com/a/painted_concrete_02) | painted_concrete_02_rough_2k.jpg | CC0 | https://dl.polyhaven.org/file/ph-assets/Textures/jpg/2k/painted_concrete_02/painted_concrete_02_rough_2k.jpg | 3e9b68323b90dbce985b9afe40fcb098df08a0d82a8f555b9d71894837a879a0 |
| Human Base Meshes v1.4.1 (Blender Studio, https://www.blender.org/download/demo-files/) | human-base-meshes-bundle-v1.4.1.zip (objects GEO-body_male_realistic, GEO-body_female_realistic: base level only) | CC0 | https://download.blender.org/demo/asset-bundles/human-base-meshes/human-base-meshes-bundle-v1.4.1.zip | 811f43accbb31a88266d932f8f5563b2d13586fca0ba2693aad1f5fe582b3515 |
| metal_plate_02 (https://polyhaven.com/a/metal_plate_02) | metal_plate_02_nor_gl_2k.jpg | CC0 | https://dl.polyhaven.org/file/ph-assets/Textures/jpg/2k/metal_plate_02/metal_plate_02_nor_gl_2k.jpg | 1da6ddb0f455d53636754b3b629942e6aec2f77fafaf6a53cee102ec107854c1 |
+| FS536741 KI Verse SFX bolt body hit: Kenney Impact Sounds impactPunch_heavy_000 with a short arc of freesound 536741 (egomassive) | dodaios/ui/web/frontend/public/verse/audio/body_hit_1.ogg | CC0 | https://kenney.nl/assets/impact-sounds and https://freesound.org/people/egomassive/sounds/536741/ | 5cb41ffd14e3509c0bd0502e15c059110b15747a10b67b95e50dec349cf5d1fb |
+| FS536741 KI Verse SFX bolt body hit: Kenney Impact Sounds impactPunch_heavy_001 with a short arc of freesound 536741 (egomassive) | dodaios/ui/web/frontend/public/verse/audio/body_hit_2.ogg | CC0 | https://kenney.nl/assets/impact-sounds and https://freesound.org/people/egomassive/sounds/536741/ | 38479f3be13d0fc6e9e4ab2951aa2d2e3ed1076746e50cc95a37a01d67aaa350 |
+| FS536741 KI Verse SFX bolt body hit: Kenney Impact Sounds impactPunch_heavy_002 with a short arc of freesound 536741 (egomassive) | dodaios/ui/web/frontend/public/verse/audio/body_hit_3.ogg | CC0 | https://kenney.nl/assets/impact-sounds and https://freesound.org/people/egomassive/sounds/536741/ | 23a8c9b73a0f748dc3a1a785dd9f4b8525032ef8bf1ca4297dd1a14b577b64d7 |
+| FS673424 KI Verse SFX body fall: freesound 673424 (courtneyeck) with Kenney Impact Sounds impactPlate_heavy_000 | dodaios/ui/web/frontend/public/verse/audio/knockout.ogg | CC0 | https://freesound.org/people/courtneyeck/sounds/673424/ and https://kenney.nl/assets/impact-sounds | d19866c6f7be4af89ad1666b04051f3a34a332bd163868ee9ab9cb3b337cb9f7 |
+| FS619320 Verse ambience bridge: freesound 619320 Facility Hum Ambience Loopable (aSuperiorPotato) | dodaios/ui/web/frontend/public/verse/audio/amb_bridge.ogg | CC0 | https://freesound.org/people/aSuperiorPotato/sounds/619320/ | d3f9f2821bcda3be2d22f423e1d42019be456128f40f4a8a9cca2dd09780cd56 |
+| FS429188 Verse ambience ops: freesound 429188 Electrical server room (OSFX) | dodaios/ui/web/frontend/public/verse/audio/amb_ops.ogg | CC0 | https://freesound.org/people/OSFX/sounds/429188/ | b3f6fa2bdd9d2817c938dd91894e1fb67f757d2c2aa3722651f8fb7d88ee1620 |
+| FS749979 Verse ambience engineering: freesound 749979 Nuclear reactor (Bachsambora) | dodaios/ui/web/frontend/public/verse/audio/amb_engineering.ogg | CC0 | https://freesound.org/people/Bachsambora/sounds/749979/ | 6c5fd6156bd338605d9771e52fb1520365491c5961890601c41ba81e32af29d3 |
+| FS587617 Verse ambience hangar: freesound 587617 low_machine_hum (Foxicity) | dodaios/ui/web/frontend/public/verse/audio/amb_hangar.ogg | CC0 | https://freesound.org/people/Foxicity/sounds/587617/ | 1415b39cdc26801fe8c6d7d610f5b6e0168dfac5d9d9584edd30173acf5e3f68 |
+| FS448394 Verse UI click: freesound 448394 Fuze Switch Flick (LordForklift) | dodaios/ui/web/frontend/public/verse/audio/ui_click.ogg | CC0 | https://freesound.org/people/LordForklift/sounds/448394/ | 5e089eccfd89b384f07eb3d502bcf0a86101f06daf7fc3a146e7df1d168c39fc |
+| FS477846 FS161228 Verse lift door open: freesound 477846 short-gas-leak (Astounded) with 161228 Large Metal Lift Door Opening (lolamadeus) | dodaios/ui/web/frontend/public/verse/audio/door_open.ogg | CC0 | https://freesound.org/people/Astounded/sounds/477846/ and https://freesound.org/people/lolamadeus/sounds/161228/ | c14985c5c3678419fa3872808df3e7dafd34eef26a43e73ee0274913c8eb5a01 |
+| FS477846 FS161230 Verse lift door close: freesound 477846 short-gas-leak (Astounded) with 161230 Large Metal Lift Door Closing (lolamadeus) | dodaios/ui/web/frontend/public/verse/audio/door_close.ogg | CC0 | https://freesound.org/people/Astounded/sounds/477846/ and https://freesound.org/people/lolamadeus/sounds/161230/ | a2a21953fc414c941bd019e20372c5a675de1941e78e0580f9843a67dab98d4d |
+| FS221929 Verse lift ride: freesound 221929 Industrial lift ride-along (peridactyloptrix) | dodaios/ui/web/frontend/public/verse/audio/lift_ride.ogg | CC0 | https://freesound.org/people/peridactyloptrix/sounds/221929/ | adcacfff8ef40ace2bebfec1b404f2bb7cd437653dcc5fb2f041ee33de422eaa |
+| FS749711 Verse footstep metal boots take 1: freesound 749711 Steps boots on metal surface (RFCaldas) | dodaios/ui/web/frontend/public/verse/audio/step_1.ogg | CC0 | https://freesound.org/people/RFCaldas/sounds/749711/ | 85a9b692a5218d39791d6228074f550ea0d0f562dabd8c40f948990bdc2ce9b4 |
+| FS749711 Verse footstep metal boots take 2: freesound 749711 Steps boots on metal surface (RFCaldas) | dodaios/ui/web/frontend/public/verse/audio/step_2.ogg | CC0 | https://freesound.org/people/RFCaldas/sounds/749711/ | af429617ba454c3c2e7ee8e656fd9d726aebfc27b507586f5aabb155eec6d72c |
+| FS749711 Verse footstep metal boots take 3: freesound 749711 Steps boots on metal surface (RFCaldas) | dodaios/ui/web/frontend/public/verse/audio/step_3.ogg | CC0 | https://freesound.org/people/RFCaldas/sounds/749711/ | 01c059d7ede033613c78e17367484158af4ea9991c1fa9b46dc3d60a8c7b387a |
+| FS749711 Verse footstep metal boots take 4: freesound 749711 Steps boots on metal surface (RFCaldas) | dodaios/ui/web/frontend/public/verse/audio/step_4.ogg | CC0 | https://freesound.org/people/RFCaldas/sounds/749711/ | 1abdc536ff486daddcb11eb3179b111c878f7b72cec289fbc1ab742ad8c3a0d5 |
+| FS749711 Verse footstep metal boots take 5: freesound 749711 Steps boots on metal surface (RFCaldas) | dodaios/ui/web/frontend/public/verse/audio/step_5.ogg | CC0 | https://freesound.org/people/RFCaldas/sounds/749711/ | 72ec6c9ce69195f30fb6a55d5900be0132d4543fa90a79dc18120a5b9158b19f |
+| FS749711 Verse footstep metal boots take 6: freesound 749711 Steps boots on metal surface (RFCaldas) | dodaios/ui/web/frontend/public/verse/audio/step_6.ogg | CC0 | https://freesound.org/people/RFCaldas/sounds/749711/ | 4269d232824566c934d29b129127d07d71903d6a2c1a3d3539b56f59f1c6b591 |
diff --git a/art/verse/audio/README.md b/art/verse/audio/README.md
new file mode 100644
index 0000000000..f385c5a13f
--- /dev/null
+++ b/art/verse/audio/README.md
@@ -0,0 +1,65 @@
+# Verse audio (WP19)
+
+Sound for the Unreal Verse, built as code. Nothing recorded is committed:
+synthesised sounds are computed here, CC0 recordings are read from the files
+the ledger (`art/verse/LICENSES.md`) cites, and only the imported `.uasset`
+files under `unreal/Verse/Content/Verse/Audio/` enter git (Git LFS).
+
+| File | Job |
+|---|---|
+| `dsp.py` | Seeded DSP primitives (noise, filters, modes, room responses) |
+| `recipes.py` | One recipe per sound family: weapon layers, bolts, impacts on the 8 materials, footsteps per surface, foley, reloads, melee, finisher, destruction per piece class, debris, drones, gadgets, beds, UI |
+| `build_audio.py` | Renders every variant of `unreal/Verse/Data/audio/cues.json` into `art/verse/.cache/audio/` (ignored) |
+| `import_audio.py` | Build, then import under the machine lock (`editor/import_sounds.py` in the headless editor) into `SW_*` sound waves and `DA_AudioCues`, then the licence audit |
+| `loudness.py` | ITU-R BS.1770-4 integrated loudness and true peak |
+| `reference_mix.py` | Renders the reference duel replay (`Data/audio/reference_duel.json`) with the runtime mix rules and checks A19.4 (-16 LUFS within 1 LU, true peak at most -1 dBTP) |
+| `audit_licences.py` | A19.6: every sound cites `own` or ledger rows whose SHA-256 matches |
+| `tests/` | pytest for all of the above |
+
+Runtime side: `unreal/Verse/Source/VerseUI/{Public,Private}/Audio/`
+(`UVerseAudioSubsystem`). Rules it keeps:
+
+- A sound of anyone but the listener is attenuated to exactly the
+ `DA_Audibility` range of its `Noise.*` tag, the range the bot hears it at
+ (fairness F6). Sounds the bot cannot hear (crouch steps, lean, equip) play
+ only for their own player. The listener's own bolt impacts are shooter
+ feedback (cue `range_m`), as the bot gets its own hit confirms.
+- At most 64 voices; a cue over its own limit replaces its oldest voice, over
+ the global cap the lowest-priority voice is stolen.
+- The table is `DA_Audibility` (Core): the cue set's own pointer, else the
+ project's one `UVerseAudibilityTable` asset (`/Game/Verse/Core/DA_Audibility`
+ first, else the asset registry), and only without any asset the contract
+ rows. `reference_mix.py` keeps a copy of those rows; a test holds it equal to
+ Core's `MakeContractRows`.
+- Someone else's reload plays at that player's pawn with the `Noise.Reload`
+ range; without a known pawn it does not play. A new reload or a cancel stops
+ the player's previous reload voice.
+- Occlusion is traced through destructible pieces with the destruction query,
+ which honours holes and breaches, so opening a wall opens the sound; loops
+ re-trace every 0.25 s. A voice's volume multiplier (cue volume, gain, bus
+ and master gain) is set once at the start; occlusion moves only the voice's
+ fader, so the heard level is always multiplier x occlusion gain.
+- Hidden or dormant: muted at once; shown again: a 150 ms fade in.
+- Every sound routes to the submix of its bus (weapons, impacts, foley,
+ destruction, gadgets, ambience, UI); the bus submixes feed one master submix
+ with a look-ahead limiter. Bus gains stay on the voice multiplier so the
+ event log and the reference mix see them.
+- Sources are sound waves; layering (mechanical, body, tail, distance layers)
+ is done by the subsystem, which starts each layer as its own voice.
+
+Mixer lane (A19.3 audio-thread cost): `Verse.UI.Audio.MixerLoad` runs
+`destruction_storm` through the engine sink and the shipped cues and writes
+`Saved/Harness/proof/WP19/19.6/mixer_load.json`. It needs a run with sound;
+under `-nosound` (the `test.py` lane) it only notes the skip:
+
+```
+python scripts/unreal/with_lock.py --label wp19-mixer -- <UnrealEditor-Cmd.exe> unreal/Verse/Verse.uproject "-ExecCmds=Automation RunTests Verse.UI.Audio.MixerLoad; Quit" "-TestExit=Automation Test Queue Empty" -unattended -nullrhi -nosplash -NoP4 -stdout -ReportExportPath=<dir> -abslog=<dir>/run.log
+```
+
+```
+python art/verse/audio/build_audio.py
+python art/verse/audio/import_audio.py # needs the editor build
+python art/verse/audio/reference_mix.py --check
+python art/verse/audio/audit_licences.py --require-assets
+python -m pytest art/verse/audio/tests -q
+```
diff --git a/art/verse/audio/audit_licences.py b/art/verse/audio/audit_licences.py
new file mode 100644
index 0000000000..5817d2aca7
--- /dev/null
+++ b/art/verse/audio/audit_licences.py
@@ -0,0 +1,123 @@
+#!/usr/bin/env python3
+"""Licence audit of every Verse sound (WP19.9, acceptance A19.6).
+
+Every sound asset must cite ``own`` (built by ``recipes.py``) or the ledger
+rows of ``art/verse/LICENSES.md`` that cover its CC0 source recordings.
+
+Checks:
+1. Each cue in ``cues.json`` has a licence ``own`` or ``cc0:<key>[,<key>]``.
+2. A CC0 cue names the recording(s) it reads; each file has a ledger row
+ whose Asset column lists every key the cue cites, whose licence is CC0
+ and whose SHA-256 matches the file in the repo.
+3. Each ``SW_*.uasset`` under ``unreal/Verse/Content/Verse/Audio/`` is a
+ variant of a cue in ``cues.json`` (no orphan, so no uncited sound), and
+ with ``--require-assets`` every variant has its asset.
+
+ python art/verse/audio/audit_licences.py [--require-assets] [--report PATH]
+"""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import re
+import sys
+from pathlib import Path
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+
+import build_audio # noqa: E402
+
+REPO_ROOT = build_audio.REPO_ROOT
+LEDGER = REPO_ROOT / "art" / "verse" / "LICENSES.md"
+CONTENT = REPO_ROOT / "unreal" / "Verse" / "Content" / "Verse" / "Audio"
+LICENCE_RE = re.compile(r"^(own|cc0:[A-Za-z0-9]+(,[A-Za-z0-9]+)*)$")
+
+
+def ledger_rows(path: Path = LEDGER) -> list[dict]:
+ rows = []
+ for line in path.read_text(encoding="utf-8").splitlines():
+ cells = [c.strip() for c in line.strip().strip("|").split("|")]
+ if len(cells) != 5 or cells[0] in ("Asset", "") or set(cells[0]) <= {"-"}:
+ continue
+ rows.append(dict(zip(("asset", "file", "license", "url", "sha256"), cells, strict=True)))
+ return rows
+
+
+def cue_files(cue: dict) -> list[str]:
+ files = list(cue.get("files") or [])
+ if "file" in cue.get("params", {}):
+ files.append(cue["params"]["file"])
+ return sorted(set(files))
+
+
+def audit(cues_doc: dict, rows: list[dict], content: Path, require_assets: bool) -> list[str]:
+ problems: list[str] = []
+ by_file = {r["file"]: r for r in rows}
+ expected: dict[str, str] = {}
+ for cue in cues_doc["cues"]:
+ cid, lic = cue["id"], cue.get("licence", "")
+ for v in range(int(cue["variants"])):
+ expected[build_audio.asset_name(cid, v)] = lic
+ if not LICENCE_RE.match(lic):
+ problems.append(f"{cid}: licence {lic!r} is neither 'own' nor 'cc0:<keys>'")
+ continue
+ files = cue_files(cue)
+ if lic == "own":
+ if files or cue["recipe"].startswith("cc0"):
+ problems.append(f"{cid}: reads a recording but cites 'own'")
+ continue
+ keys = lic.split(":", 1)[1].split(",")
+ if not files:
+ problems.append(f"{cid}: cites {lic} but reads no recording")
+ for f in files:
+ row = by_file.get(f)
+ if row is None:
+ problems.append(f"{cid}: no ledger row for {f}")
+ continue
+ if row["license"] != "CC0":
+ problems.append(f"{cid}: ledger row for {f} is {row['license']}, not CC0")
+ missing = [k for k in keys if k not in row["asset"].split()]
+ if missing:
+ problems.append(f"{cid}: ledger row for {f} does not list {', '.join(missing)}")
+ path = REPO_ROOT / f
+ if not path.is_file():
+ problems.append(f"{cid}: recording {f} is missing")
+ elif hashlib.sha256(path.read_bytes()).hexdigest() != row["sha256"]:
+ problems.append(f"{cid}: SHA-256 of {f} differs from the ledger")
+ found = {p.stem for p in content.rglob("SW_*.uasset")} if content.is_dir() else set()
+ for orphan in sorted(found - expected.keys()):
+ problems.append(f"{orphan}: sound asset with no cue in cues.json (licence unknown)")
+ if require_assets:
+ for missing in sorted(expected.keys() - found):
+ problems.append(f"{missing}: cue variant has no imported asset")
+ return problems
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("--require-assets", action="store_true")
+ parser.add_argument("--report", type=Path)
+ args = parser.parse_args(argv)
+ doc = build_audio.load_cues()
+ problems = audit(doc, ledger_rows(), CONTENT, args.require_assets)
+ assets = sorted(p.stem for p in CONTENT.rglob("SW_*.uasset")) if CONTENT.is_dir() else []
+ report = {
+ "test": "A19.6 licence",
+ "cues": len(doc["cues"]),
+ "sound_assets": len(assets),
+ "own": sum(1 for c in doc["cues"] if c["licence"] == "own"),
+ "cc0": sum(1 for c in doc["cues"] if c["licence"].startswith("cc0:")),
+ "problems": problems,
+ "pass": not problems,
+ }
+ if args.report:
+ args.report.parent.mkdir(parents=True, exist_ok=True)
+ args.report.write_text(json.dumps(report, indent=1), encoding="utf-8")
+ print(json.dumps(report, indent=1))
+ return 0 if not problems else 1
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/art/verse/audio/build_audio.py b/art/verse/audio/build_audio.py
new file mode 100644
index 0000000000..59baf17cb2
--- /dev/null
+++ b/art/verse/audio/build_audio.py
@@ -0,0 +1,125 @@
+#!/usr/bin/env python3
+"""Build every Verse sound from ``unreal/Verse/Data/audio/cues.json`` (WP19).
+
+Writes one mono 48 kHz 16-bit WAV per cue variant into the ignored cache
+``art/verse/.cache/audio/<Group>/SW_<cue>_<nn>.wav`` plus
+``art/verse/.cache/audio/manifest.json`` (cue, variant, file, SHA-256,
+duration, licence). WAVs are never committed (architecture 8.4); only the
+imported ``.uasset`` files are. Deterministic: the same manifest gives the
+same bytes.
+
+ python art/verse/audio/build_audio.py # everything
+ python art/verse/audio/build_audio.py --only wpn_rifle_fp_body imp_glass
+"""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import sys
+import wave
+from pathlib import Path
+
+import numpy as np
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+
+import dsp # noqa: E402
+import recipes # noqa: E402
+
+REPO_ROOT = Path(__file__).resolve().parents[3]
+DATA_DIR = REPO_ROOT / "unreal" / "Verse" / "Data" / "audio"
+CUES_FILE = DATA_DIR / "cues.json"
+CACHE_DIR = REPO_ROOT / "art" / "verse" / ".cache" / "audio"
+
+
+def load_cues(path: Path = CUES_FILE) -> dict:
+ return json.loads(path.read_text(encoding="utf-8"))
+
+
+def asset_name(cue_id: str, variant: int) -> str:
+ return f"SW_{cue_id}_{variant + 1:02d}"
+
+
+def variant_params(cue: dict, variant: int) -> dict:
+ params = dict(cue.get("params", {}))
+ files = cue.get("files")
+ if files:
+ params["file"] = files[variant % len(files)]
+ return params
+
+
+def render_variant(cue: dict, variant: int) -> np.ndarray:
+ params = variant_params(cue, variant)
+ if cue.get("loop") and cue["recipe"] == "cc0":
+ params["loop"] = True
+ x = recipes.build(cue["recipe"], cue["seed"] + variant, params)
+ if not cue.get("loop"):
+ # Trim trailing silence below -70 dBFS relative to the peak, keep a 20 ms tail.
+ peak = np.max(np.abs(x)) + 1e-12
+ idx = np.nonzero(np.abs(x) > peak * 10 ** (-70 / 20))[0]
+ if idx.size:
+ x = x[: min(len(x), idx[-1] + dsp.seconds(0.02))]
+ x = dsp.fade(x, 0.0003, 0.01)
+ return dsp.normalize_peak(x, float(cue["peak_db"]))
+
+
+def write_wav(path: Path, x: np.ndarray) -> str:
+ path.parent.mkdir(parents=True, exist_ok=True)
+ pcm = dsp.to_pcm16(x)
+ with wave.open(str(path), "wb") as w:
+ w.setnchannels(1)
+ w.setsampwidth(2)
+ w.setframerate(dsp.SR)
+ w.writeframes(pcm.tobytes())
+ return hashlib.sha256(path.read_bytes()).hexdigest()
+
+
+def read_wav(path: Path) -> np.ndarray:
+ with wave.open(str(path), "rb") as w:
+ data = np.frombuffer(w.readframes(w.getnframes()), dtype=np.int16)
+ return data.astype(np.float64) / 32767.0
+
+
+def build(only: set[str] | None = None, cache: Path = CACHE_DIR) -> dict:
+ doc = load_cues()
+ entries = []
+ for cue in doc["cues"]:
+ if only and cue["id"] not in only:
+ continue
+ for v in range(int(cue["variants"])):
+ x = render_variant(cue, v)
+ rel = Path(cue["group"]) / f"{asset_name(cue['id'], v)}.wav"
+ sha = write_wav(cache / rel, x)
+ entries.append(
+ {
+ "cue": cue["id"],
+ "variant": v,
+ "asset": asset_name(cue["id"], v),
+ "group": cue["group"],
+ "file": rel.as_posix(),
+ "sha256": sha,
+ "duration_s": round(len(x) / dsp.SR, 4),
+ "loop": bool(cue.get("loop")),
+ "licence": cue["licence"],
+ }
+ )
+ manifest = {"schema": "verse.audio.build/1", "sample_rate": dsp.SR, "sounds": entries}
+ if not only:
+ (cache / "manifest.json").write_text(json.dumps(manifest, indent=1), encoding="utf-8")
+ return manifest
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("--only", nargs="*", help="cue ids to build (default: all)")
+ args = parser.parse_args(argv)
+ manifest = build(set(args.only) if args.only else None)
+ total = sum(e["duration_s"] for e in manifest["sounds"])
+ print(f"built {len(manifest['sounds'])} sounds ({total:.1f} s) into {CACHE_DIR}")
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/art/verse/audio/dsp.py b/art/verse/audio/dsp.py
new file mode 100644
index 0000000000..d9074c818d
--- /dev/null
+++ b/art/verse/audio/dsp.py
@@ -0,0 +1,191 @@
+"""Small deterministic DSP toolkit for the Verse sound builders (WP19).
+
+Every generated sound is own work: it is computed from seeded noise and
+oscillators here, never sampled from a recording. All functions take and
+return float64 numpy arrays at ``SR`` Hz, mono unless noted.
+"""
+
+from __future__ import annotations
+
+import numpy as np
+from scipy import signal
+
+SR = 48_000
+
+
+def rng(seed: int) -> np.random.Generator:
+ return np.random.default_rng(seed)
+
+
+def seconds(n: float) -> int:
+ return max(1, int(round(n * SR)))
+
+
+def t_axis(length_s: float) -> np.ndarray:
+ return np.arange(seconds(length_s)) / SR
+
+
+def white(r: np.random.Generator, length_s: float) -> np.ndarray:
+ return r.standard_normal(seconds(length_s))
+
+
+def brown(r: np.random.Generator, length_s: float) -> np.ndarray:
+ x = np.cumsum(r.standard_normal(seconds(length_s)))
+ x = signal.lfilter([1.0, -1.0], [1.0, -0.995], x) # leaky: no DC drift
+ return x / (np.max(np.abs(x)) + 1e-12)
+
+
+def pink(r: np.random.Generator, length_s: float) -> np.ndarray:
+ # Paul Kellet's economy pink filter.
+ b = [0.049922035, -0.095993537, 0.050612699, -0.004408786]
+ a = [1.0, -2.494956002, 2.017265875, -0.522189400]
+ x = signal.lfilter(b, a, white(r, length_s))
+ return x / (np.max(np.abs(x)) + 1e-12)
+
+
+def _sos(kind: str, freq, order: int = 4) -> np.ndarray:
+ nyq = SR / 2
+ if isinstance(freq, (tuple, list)):
+ wn = [min(max(f / nyq, 1e-4), 0.999) for f in freq]
+ else:
+ wn = min(max(freq / nyq, 1e-4), 0.999)
+ return signal.butter(order, wn, btype=kind, output="sos")
+
+
+def lowpass(x: np.ndarray, hz: float, order: int = 4) -> np.ndarray:
+ return signal.sosfilt(_sos("lowpass", hz, order), x)
+
+
+def highpass(x: np.ndarray, hz: float, order: int = 4) -> np.ndarray:
+ return signal.sosfilt(_sos("highpass", hz, order), x)
+
+
+def bandpass(x: np.ndarray, lo: float, hi: float, order: int = 2) -> np.ndarray:
+ return signal.sosfilt(_sos("bandpass", (lo, hi), order), x)
+
+
+def peak_eq(x: np.ndarray, hz: float, q: float, gain_db: float) -> np.ndarray:
+ a_lin = 10 ** (gain_db / 40)
+ w0 = 2 * np.pi * hz / SR
+ alpha = np.sin(w0) / (2 * q)
+ b = [1 + alpha * a_lin, -2 * np.cos(w0), 1 - alpha * a_lin]
+ a = [1 + alpha / a_lin, -2 * np.cos(w0), 1 - alpha / a_lin]
+ return signal.lfilter(b, a, x)
+
+
+def env_exp(length_s: float, decay_s: float, attack_s: float = 0.0005) -> np.ndarray:
+ t = t_axis(length_s)
+ att = np.clip(t / max(attack_s, 1e-6), 0, 1)
+ return att * np.exp(-t / max(decay_s, 1e-6))
+
+
+def env_adsr(length_s: float, a: float, d: float, s: float, r: float) -> np.ndarray:
+ n = seconds(length_s)
+ t = np.arange(n) / SR
+ out = np.full(n, s)
+ out[t < a] = t[t < a] / max(a, 1e-6)
+ dm = (t >= a) & (t < a + d)
+ out[dm] = 1 - (1 - s) * (t[dm] - a) / max(d, 1e-6)
+ rel_start = length_s - r
+ rm = t >= rel_start
+ out[rm] = s * np.clip(1 - (t[rm] - rel_start) / max(r, 1e-6), 0, 1)
+ return out
+
+
+def sweep(f0: float, f1: float, length_s: float, curve: float = 4.0) -> np.ndarray:
+ """Sine whose frequency glides exponentially from f0 to f1."""
+ t = t_axis(length_s)
+ k = np.exp(-curve * t / length_s)
+ freq = f1 + (f0 - f1) * k
+ phase = 2 * np.pi * np.cumsum(freq) / SR
+ return np.sin(phase)
+
+
+def modes(
+ r: np.random.Generator, length_s: float, freqs, decays, amps=None, detune: float = 0.01
+) -> np.ndarray:
+ """Sum of decaying sine partials: metal rings, shells, glass."""
+ t = t_axis(length_s)
+ out = np.zeros_like(t)
+ amps = amps if amps is not None else [1.0] * len(freqs)
+ for f, d, a in zip(freqs, decays, amps, strict=True):
+ f2 = f * (1 + r.uniform(-detune, detune))
+ out += a * np.sin(2 * np.pi * f2 * t + r.uniform(0, 2 * np.pi)) * np.exp(-t / d)
+ return out
+
+
+def saturate(x: np.ndarray, drive: float) -> np.ndarray:
+ return np.tanh(drive * x) / np.tanh(drive)
+
+
+def pad(x: np.ndarray, length_s: float, offset_s: float = 0.0) -> np.ndarray:
+ n = seconds(length_s)
+ out = np.zeros(n)
+ o = seconds(offset_s) if offset_s > 0 else 0
+ m = min(len(x), n - o)
+ if m > 0:
+ out[o : o + m] = x[:m]
+ return out
+
+
+def mix(length_s: float, *parts) -> np.ndarray:
+ """Mix (signal, gain, offset_s) tuples into one buffer."""
+ out = np.zeros(seconds(length_s))
+ for part in parts:
+ x, g = part[0], part[1]
+ off = part[2] if len(part) > 2 else 0.0
+ out += g * pad(x, length_s, off)
+ return out
+
+
+def room_ir(
+ r: np.random.Generator,
+ length_s: float,
+ decay_s: float,
+ bright_hz: float,
+ early=(0.007, 0.013, 0.021, 0.034),
+) -> np.ndarray:
+ """Synthetic room impulse response: a few early reflections plus a dark noise tail."""
+ t = t_axis(length_s)
+ tail = r.standard_normal(len(t)) * np.exp(-t * 6.91 / decay_s) # -60 dB at decay_s
+ tail = lowpass(tail, bright_hz, 2)
+ ir = 0.35 * tail
+ for i, e in enumerate(early):
+ idx = seconds(e)
+ if idx < len(ir):
+ ir[idx] += 0.6 * (0.75**i) * (1 if r.random() > 0.5 else -1)
+ ir[0] = 1.0
+ return ir / np.sqrt(np.sum(ir**2))
+
+
+def convolve(x: np.ndarray, ir: np.ndarray, length_s: float) -> np.ndarray:
+ y = signal.fftconvolve(x, ir)[: seconds(length_s)]
+ return pad(y, length_s)
+
+
+def fade(x: np.ndarray, in_s: float = 0.0005, out_s: float = 0.01) -> np.ndarray:
+ y = x.copy()
+ ni, no = seconds(in_s), seconds(out_s)
+ y[:ni] *= np.linspace(0, 1, ni)
+ y[-no:] *= np.linspace(1, 0, no)
+ return y
+
+
+def loopable(x: np.ndarray, xfade_s: float = 0.5) -> np.ndarray:
+ """Crossfade the end into the start so the buffer loops without a click."""
+ n = seconds(xfade_s)
+ head, body, tail = x[:n], x[n:-n] if len(x) > 2 * n else x, x[-n:]
+ w = np.linspace(0, 1, n)
+ seam = tail * (1 - w) + head * w
+ return np.concatenate([body, seam]) if len(x) > 2 * n else x
+
+
+def normalize_peak(x: np.ndarray, peak_db: float) -> np.ndarray:
+ p = np.max(np.abs(x))
+ if p <= 0:
+ return x
+ return x * (10 ** (peak_db / 20) / p)
+
+
+def to_pcm16(x: np.ndarray) -> np.ndarray:
+ return (np.clip(x, -1.0, 1.0) * 32767.0).astype(np.int16)
diff --git a/art/verse/audio/editor/import_sounds.py b/art/verse/audio/editor/import_sounds.py
new file mode 100644
index 0000000000..232fab9fa2
--- /dev/null
+++ b/art/verse/audio/editor/import_sounds.py
@@ -0,0 +1,188 @@
+"""Runs inside the headless editor (pythonscript commandlet): import the Verse sounds (WP19).
+
+Reads unreal/Verse/Data/audio/{cues,mix,occlusion}.json and the build manifest in
+art/verse/.cache/audio/, imports every WAV as /Game/Verse/Audio/<Group>/SW_<cue>_<nn>,
+writes DA_AudioCues (UVerseAudioCueSet) and deletes sound waves no cue lists any more.
+Started by art/verse/audio/import_audio.py, never by hand. Prints "VERSE_AUDIO OK" on success.
+"""
+
+import json
+import os
+from pathlib import Path
+
+import unreal
+
+REPO = Path(os.environ["VERSE_AUDIO_REPO"])
+DATA = REPO / "unreal" / "Verse" / "Data" / "audio"
+CACHE = REPO / "art" / "verse" / ".cache" / "audio"
+ROOT = "/Game/Verse/Audio"
+CUESET = f"{ROOT}/DA_AudioCues"
+VERIFY = os.environ.get("VERSE_AUDIO_MODE") == "verify"
+
+
+def log(msg):
+ unreal.log(f"VERSE_AUDIO {msg}")
+
+
+def load_json(path):
+ return json.loads(path.read_text(encoding="utf-8"))
+
+
+def import_waves(manifest):
+ tasks = []
+ for s in manifest["sounds"]:
+ task = unreal.AssetImportTask()
+ task.set_editor_property("filename", str(CACHE / s["file"]))
+ task.set_editor_property("destination_path", f"{ROOT}/{s['group']}")
+ task.set_editor_property("destination_name", s["asset"])
+ task.set_editor_property("replace_existing", True)
+ task.set_editor_property("automated", True)
+ task.set_editor_property("save", False)
+ tasks.append(task)
+ unreal.AssetToolsHelpers.get_asset_tools().import_asset_tasks(tasks)
+ waves = {}
+ for s in manifest["sounds"]:
+ path = f"{ROOT}/{s['group']}/{s['asset']}"
+ wave = unreal.EditorAssetLibrary.load_asset(path)
+ if not isinstance(wave, unreal.SoundWave):
+ raise RuntimeError(f"import failed: {path}")
+ wave.set_editor_property("looping", bool(s["loop"]))
+ unreal.EditorAssetLibrary.save_loaded_asset(wave, only_if_is_dirty=False)
+ waves[(s["cue"], s["variant"])] = wave
+ return waves
+
+
+def bus(name):
+ return getattr(unreal.VerseAudioBus, name.upper())
+
+
+def make_mix(mix, occ):
+ m = unreal.VerseAudioMixSettings()
+ order = ["Weapons", "Impacts", "Foley", "Destruction", "Gadgets", "Ambience", "UI"]
+ d, lim = mix["distance"], mix["limiter"]
+ values = {
+ "master_gain_db": mix["master_gain_db"],
+ "bus_gain_db": [float(mix["bus_gain_db"][b]) for b in order],
+ "max_voices": int(mix["max_voices"]),
+ "dormant_unmute_fade_s": mix["dormant_unmute_fade_s"],
+ "reference_m": d["reference_m"],
+ "rolloff": d["rolloff"],
+ "fade_start_fraction": d["fade_start_fraction"],
+ "floor_db": d["floor_db"],
+ "shot_near_full_m": mix["shot_layers"]["near_full_m"],
+ "shot_far_full_m": mix["shot_layers"]["far_full_m"],
+ "flyby_radius_m": mix["flyby"]["radius_m"],
+ "bolt_speed_mps": mix["flyby"]["bolt_speed_mps"],
+ "settle_delay_min_s": mix["debris_settle_delay_s"][0],
+ "settle_delay_max_s": mix["debris_settle_delay_s"][1],
+ "occlusion_refresh_s": mix["occlusion_refresh_s"],
+ "occlusion_max_loss_db": occ["max_loss_db"],
+ "open_lowpass_hz": occ["open_lowpass_hz"],
+ "occlusion_loss_db": [float(r["transmission_db"]) for r in occ["materials"]],
+ "occlusion_lowpass_hz": [float(r["lowpass_hz"]) for r in occ["materials"]],
+ "limiter_threshold_db": lim["threshold_db"],
+ "limiter_lookahead_ms": lim["lookahead_ms"],
+ "limiter_attack_ms": lim["attack_ms"],
+ "limiter_release_ms": lim["release_ms"],
+ }
+ for k, v in values.items():
+ m.set_editor_property(k, v)
+ return m
+
+
+def write_cue_set(cues_doc, mix, occ, waves):
+ asset = (
+ unreal.EditorAssetLibrary.load_asset(CUESET)
+ if unreal.EditorAssetLibrary.does_asset_exist(CUESET)
+ else None
+ )
+ if asset is None:
+ factory = unreal.DataAssetFactory()
+ factory.set_editor_property("data_asset_class", unreal.VerseAudioCueSet)
+ asset = unreal.AssetToolsHelpers.get_asset_tools().create_asset(
+ "DA_AudioCues", ROOT, unreal.VerseAudioCueSet, factory
+ )
+ cues = []
+ for c in cues_doc["cues"]:
+ cue = unreal.VerseAudioCue()
+ cue.set_editor_property("cue_id", c["id"])
+ cue.set_editor_property(
+ "variants", [waves[(c["id"], v)] for v in range(int(c["variants"]))]
+ )
+ cue.set_editor_property("bus", bus(c["bus"]))
+ cue.set_editor_property("spatial", c["space"] == "3d")
+ cue.set_editor_property("noise_tag", c["noise"] or "None")
+ cue.set_editor_property("range_m", float(c["range_m"]))
+ cue.set_editor_property("volume", unreal.Vector2D(*[float(x) for x in c["volume"]]))
+ cue.set_editor_property("pitch", unreal.Vector2D(*[float(x) for x in c["pitch"]]))
+ cue.set_editor_property("priority", float(c["priority"]))
+ cue.set_editor_property("max_voices", int(c["max_voices"]))
+ cue.set_editor_property("loop", bool(c["loop"]))
+ cue.set_editor_property("licence", c["licence"])
+ cues.append(cue)
+ asset.set_editor_property("cues", cues)
+ asset.set_editor_property("mix", make_mix(mix, occ))
+ asset.set_editor_property("weapon_profiles", list(cues_doc["weapon_profiles"].keys()))
+ asset.set_editor_property("default_weapon_profile", cues_doc["default_weapon_profile"])
+ unreal.EditorAssetLibrary.save_loaded_asset(asset, only_if_is_dirty=False)
+ return asset
+
+
+def delete_orphans(manifest):
+ keep = {f"{ROOT}/{s['group']}/{s['asset']}" for s in manifest["sounds"]}
+ removed = 0
+ for path in unreal.EditorAssetLibrary.list_assets(ROOT, recursive=True, include_folder=False):
+ package = path.split(".")[0]
+ name = package.rsplit("/", 1)[-1]
+ if name.startswith("SW_") and package not in keep:
+ unreal.EditorAssetLibrary.delete_asset(package)
+ removed += 1
+ return removed
+
+
+def verify(cues_doc):
+ asset = unreal.EditorAssetLibrary.load_asset(CUESET)
+ if asset is None:
+ raise RuntimeError("DA_AudioCues missing")
+ have = {str(c.get_editor_property("cue_id")): c for c in asset.get_editor_property("cues")}
+ for c in cues_doc["cues"]:
+ cue = have.get(c["id"])
+ if cue is None or len(cue.get_editor_property("variants")) != int(c["variants"]):
+ raise RuntimeError(f"cue {c['id']} missing or wrong variant count")
+ if any(v is None for v in cue.get_editor_property("variants")):
+ raise RuntimeError(f"cue {c['id']} has an empty variant")
+ log(f"verified {len(have)} cues")
+
+
+def load_decoders():
+ """Register the audio decoders a commandlet never loads on its own.
+
+ A commandlet creates no audio device, so the BINKA decoder (the default
+ compression) is not registered and every imported or loaded sound wave
+ fails an ensure in the engine, which turns the run's exit code red.
+ """
+ for module in ("BinkAudioDecoder",):
+ unreal.SystemLibrary.execute_console_command(None, f"Module Load {module}")
+
+
+def main():
+ load_decoders()
+ cues_doc = load_json(DATA / "cues.json")
+ if VERIFY:
+ verify(cues_doc)
+ log("OK")
+ return
+ manifest = load_json(CACHE / "manifest.json")
+ waves = import_waves(manifest)
+ log(f"imported {len(waves)} sound waves")
+ write_cue_set(cues_doc, load_json(DATA / "mix.json"), load_json(DATA / "occlusion.json"), waves)
+ log(f"removed {delete_orphans(manifest)} orphan sound waves")
+ verify(cues_doc)
+ log("OK")
+
+
+try:
+ main()
+except Exception as error: # noqa: BLE001 - the host script reads the log for the verdict
+ unreal.log_error(f"VERSE_AUDIO FAILED {error}")
+ raise
diff --git a/art/verse/audio/import_audio.py b/art/verse/audio/import_audio.py
new file mode 100644
index 0000000000..22921ad421
--- /dev/null
+++ b/art/verse/audio/import_audio.py
@@ -0,0 +1,92 @@
+#!/usr/bin/env python3
+"""Build and import every Verse sound into the Unreal project (WP19).
+
+1. ``build_audio.py``: synthesise and convert every cue variant into the
+ ignored cache ``art/verse/.cache/audio/`` (WAVs never enter git).
+2. The headless editor (``pythonscript`` commandlet, ``-nullrhi``) runs
+ ``editor/import_sounds.py`` under the machine lock: it imports the WAVs as
+ ``SW_*`` sound waves under ``/Game/Verse/Audio/`` and writes
+ ``DA_AudioCues``. Only those ``.uasset`` files are committed (Git LFS).
+3. ``audit_licences.py --require-assets``: every asset cites ``own`` or a
+ ledger row.
+
+ python art/verse/audio/import_audio.py # all steps
+ python art/verse/audio/import_audio.py --verify # check the imported asset only
+
+The editor target must be built first (``python scripts/unreal/build.py editor``).
+"""
+
+from __future__ import annotations
+
+import argparse
+import os
+import subprocess
+import sys
+from pathlib import Path
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+
+import audit_licences # noqa: E402
+import build_audio # noqa: E402
+
+REPO_ROOT = build_audio.REPO_ROOT
+PROJECT = REPO_ROOT / "unreal" / "Verse" / "Verse.uproject"
+EDITOR_SCRIPT = Path(__file__).resolve().parent / "editor" / "import_sounds.py"
+DEFAULT_ENGINE = Path("C:/Program Files/Epic Games/UE_5.7")
+
+
+def editor_cmd() -> Path:
+ root = Path(os.environ.get("VERSE_UE_ROOT", DEFAULT_ENGINE))
+ return root / "Engine" / "Binaries" / "Win64" / "UnrealEditor-Cmd.exe"
+
+
+def run_editor(verify: bool, log: Path) -> None:
+ env = dict(os.environ)
+ env["VERSE_AUDIO_REPO"] = str(REPO_ROOT)
+ env["VERSE_AUDIO_MODE"] = "verify" if verify else "build"
+ log.parent.mkdir(parents=True, exist_ok=True)
+ cmd = [
+ sys.executable,
+ str(REPO_ROOT / "scripts" / "unreal" / "with_lock.py"),
+ "--label",
+ "wp19-audio-import",
+ "--",
+ str(editor_cmd()),
+ str(PROJECT),
+ "-run=pythonscript",
+ f"-script={EDITOR_SCRIPT}",
+ "-nullrhi",
+ "-unattended",
+ "-nosplash",
+ # No -NoSound: without the audio mixer the BINKA decoder is not
+ # registered and the sound-wave factory fails an ensure on import.
+ "-nop4",
+ f"-abslog={log}",
+ ]
+ out = subprocess.run(cmd, env=env, check=False) # noqa: S603
+ text = log.read_text(encoding="utf-8", errors="replace") if log.exists() else ""
+ marks = [ln.split("LogPython: ", 1)[-1] for ln in text.splitlines() if "VERSE_AUDIO" in ln]
+ for ln in marks:
+ print(ln)
+ if out.returncode != 0 or not any("VERSE_AUDIO OK" in ln for ln in marks):
+ raise SystemExit(f"editor import failed (exit {out.returncode}); log: {log}")
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("--verify", action="store_true", help="check DA_AudioCues, import nothing")
+ parser.add_argument(
+ "--log",
+ type=Path,
+ default=REPO_ROOT / "unreal" / "Verse" / "Saved" / "Logs" / "wp19_audio_import.log",
+ )
+ args = parser.parse_args(argv)
+ if not args.verify:
+ manifest = build_audio.build()
+ print(f"built {len(manifest['sounds'])} sounds")
+ run_editor(args.verify, args.log)
+ return audit_licences.main(["--require-assets"])
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/art/verse/audio/loudness.py b/art/verse/audio/loudness.py
new file mode 100644
index 0000000000..5a377d81d9
--- /dev/null
+++ b/art/verse/audio/loudness.py
@@ -0,0 +1,61 @@
+"""ITU-R BS.1770-4 loudness: integrated LUFS (gated) and true peak (dBTP).
+
+Used by the reference duel capture check (WP19 acceptance A19.4): integrated
+-16 LUFS within 1 LU, true peak at most -1 dBTP.
+"""
+
+from __future__ import annotations
+
+import numpy as np
+from scipy import signal
+
+
+def _k_weighting(sr: int) -> list[tuple[np.ndarray, np.ndarray]]:
+ # Pre-filter (high shelf) and RLB high-pass, coefficients derived for any rate
+ # (BS.1770-4 annex 1; bilinear forms as in libebur128).
+ f0, g, q = 1681.974450955533, 3.999843853973347, 0.7071752369554196
+ k = np.tan(np.pi * f0 / sr)
+ vh = 10 ** (g / 20)
+ vb = vh**0.4996667741545416
+ a0 = 1 + k / q + k * k
+ b1 = [(vh + vb * k / q + k * k) / a0, 2 * (k * k - vh) / a0, (vh - vb * k / q + k * k) / a0]
+ a1 = [1.0, 2 * (k * k - 1) / a0, (1 - k / q + k * k) / a0]
+ f0, q = 38.13547087602444, 0.5003270373238773
+ k = np.tan(np.pi * f0 / sr)
+ a0 = 1 + k / q + k * k
+ b2 = [1.0, -2.0, 1.0]
+ a2 = [1.0, 2 * (k * k - 1) / a0, (1 - k / q + k * k) / a0]
+ return [(np.array(b1), np.array(a1)), (np.array(b2), np.array(a2))]
+
+
+def _as_channels(x: np.ndarray) -> np.ndarray:
+ x = np.asarray(x, dtype=np.float64)
+ return x[None, :] if x.ndim == 1 else x.T if x.shape[0] > x.shape[1] else x
+
+
+def integrated_lufs(x: np.ndarray, sr: int) -> float:
+ """Gated integrated loudness of a mono or stereo buffer (channels weighted 1.0)."""
+ ch = _as_channels(x)
+ for b, a in _k_weighting(sr):
+ ch = signal.lfilter(b, a, ch, axis=1)
+ block, hop = int(0.4 * sr), int(0.1 * sr)
+ if ch.shape[1] < block:
+ return float("-inf")
+ starts = range(0, ch.shape[1] - block + 1, hop)
+ z = np.array([np.mean(ch[:, s : s + block] ** 2, axis=1).sum() for s in starts])
+ with np.errstate(divide="ignore"):
+ lk = -0.691 + 10 * np.log10(z)
+ abs_gate = z[lk > -70.0]
+ if abs_gate.size == 0:
+ return float("-inf")
+ rel = -0.691 + 10 * np.log10(np.mean(abs_gate)) - 10.0
+ gated = z[(lk > -70.0) & (lk > rel)]
+ return float(-0.691 + 10 * np.log10(np.mean(gated)))
+
+
+def true_peak_dbtp(x: np.ndarray, sr: int) -> float:
+ """True peak via 4x oversampling (BS.1770-4 annex 2)."""
+ ch = _as_channels(x)
+ up = signal.resample_poly(ch, 4, 1, axis=1)
+ peak = float(np.max(np.abs(up)))
+ return float("-inf") if peak <= 0 else 20 * np.log10(peak)
diff --git a/art/verse/audio/recipes.py b/art/verse/audio/recipes.py
new file mode 100644
index 0000000000..41dbdb1783
--- /dev/null
+++ b/art/verse/audio/recipes.py
@@ -0,0 +1,675 @@
+"""Sound recipes of the Verse (WP19): one function per sound family.
+
+A recipe takes a seeded generator and its parameters from
+``unreal/Verse/Data/audio/cues.json`` and returns a mono float buffer at
+``dsp.SR``. Recipes named ``cc0`` read a CC0 recording that the ledger
+(``art/verse/LICENSES.md``) cites; every other recipe is own work.
+Style: Military-Industrial Noir. Heavy, dry, close; black steel and concrete.
+"""
+
+from __future__ import annotations
+
+from collections.abc import Callable
+from pathlib import Path
+
+import dsp
+import numpy as np
+from dsp import SR
+
+REPO_ROOT = Path(__file__).resolve().parents[3]
+Recipe = Callable[..., np.ndarray]
+RECIPES: dict[str, Recipe] = {}
+
+
+def recipe(name: str) -> Callable[[Recipe], Recipe]:
+ def wrap(fn: Recipe) -> Recipe:
+ RECIPES[name] = fn
+ return fn
+
+ return wrap
+
+
+# --------------------------------------------------------------------------- helpers
+
+
+def _burst(r, length_s, lo, hi, decay_s, attack_s=0.0003):
+ return dsp.bandpass(dsp.white(r, length_s), lo, hi) * dsp.env_exp(length_s, decay_s, attack_s)
+
+
+def _clack(r, length_s, base_hz, decay_s=0.03, bright=1.0):
+ """A metal-on-metal mechanical transient: noise click plus a few inharmonic modes."""
+ ratios = [1.0, 1.59, 2.31, 3.17, 4.43]
+ freqs = [base_hz * k * r.uniform(0.97, 1.03) for k in ratios]
+ decays = [decay_s * r.uniform(0.6, 1.4) / (1 + 0.3 * i) for i in range(len(freqs))]
+ amps = [1.0, 0.7, 0.5 * bright, 0.35 * bright, 0.25 * bright]
+ ring = dsp.modes(r, length_s, freqs, decays, amps)
+ click = _burst(r, length_s, 1800, 9000, 0.004)
+ return dsp.fade(0.6 * ring + 1.2 * click)
+
+
+def _scrape(r, length_s, lo, hi, grit=0.3):
+ base = dsp.bandpass(dsp.white(r, length_s), lo, hi)
+ am = dsp.lowpass(np.abs(r.standard_normal(len(base))), 40, 2)
+ am = am / (np.max(am) + 1e-9)
+ grains = (r.random(len(base)) < 0.002).astype(float) * r.uniform(0.3, 1.0, len(base))
+ grains = dsp.highpass(grains, 2500, 2)
+ return base * (0.4 + am) + grit * grains
+
+
+def _cloth(r, length_s, intensity=1.0):
+ n = dsp.bandpass(dsp.pink(r, length_s), 500, 6000)
+ am = dsp.lowpass(np.abs(r.standard_normal(len(n))), 18, 2)
+ am = am / (np.max(am) + 1e-9)
+ return intensity * n * am * dsp.env_adsr(length_s, 0.02, 0.05, 0.8, length_s * 0.4)
+
+
+def _thud(r, length_s, f0, f1, decay_s, drive=2.0):
+ body = dsp.sweep(f0, f1, length_s, 5.0) * dsp.env_exp(length_s, decay_s, 0.001)
+ return dsp.saturate(body, drive)
+
+
+def _debris(r, length_s, density, lo, hi, decay_s=0.02, start_s=0.0, spread_s=None):
+ """Scattered small impacts: falling chips, shards, grit."""
+ out = np.zeros(dsp.seconds(length_s))
+ spread = spread_s if spread_s is not None else length_s - start_s
+ count = max(1, int(density * spread))
+ for _ in range(count):
+ when = start_s + spread * (r.random() ** 1.6)
+ g = r.uniform(0.15, 1.0) * (1 - (when - start_s) / max(spread, 1e-6)) ** 0.7
+ tick = _burst(r, 0.08, lo * r.uniform(0.8, 1.2), hi, decay_s * r.uniform(0.5, 1.5))
+ out += g * dsp.pad(tick, length_s, when)
+ return out
+
+
+def _room(r, x, length_s, decay_s=0.9, bright=3000, wet=0.35):
+ ir = dsp.room_ir(r, min(decay_s * 1.2, length_s), decay_s, bright)
+ return x + wet * dsp.convolve(x, ir, length_s)
+
+
+def _cc0_file(name: str) -> np.ndarray:
+ import soundfile as sf
+
+ data, sr = sf.read(str(REPO_ROOT / name), always_2d=False)
+ if data.ndim > 1:
+ data = data.mean(axis=1)
+ if sr != SR:
+ from scipy import signal
+
+ data = signal.resample_poly(data, SR, sr)
+ return np.asarray(data, dtype=np.float64)
+
+
+# --------------------------------------------------------------------------- recorded
+
+
+@recipe("cc0")
+def cc0(
+ r, file: str, gain: float = 1.0, lowpass_hz: float = 0.0, pitch: float = 1.0, loop=False, **_
+):
+ x = _cc0_file(file)
+ if pitch != 1.0:
+ from scipy import signal
+
+ up, down = int(round(1000 / pitch)), 1000
+ x = signal.resample_poly(x, up, down)
+ if lowpass_hz:
+ x = dsp.lowpass(x, lowpass_hz, 2)
+ # A loop keeps its own seam (the recording is cut to loop); a fade would click.
+ return gain * x if loop else dsp.fade(gain * x, 0.001, 0.02)
+
+
+@recipe("cc0_layer")
+def cc0_layer(r, file: str, synth: str, synth_gain: float = 0.6, length_s: float = 0.6, **kw):
+ base = cc0(r, file)
+ extra = RECIPES[synth](r, **kw)
+ n = max(len(base), len(extra), dsp.seconds(length_s))
+ out = np.zeros(n)
+ out[: len(base)] += base
+ out[: len(extra)] += synth_gain * extra / (np.max(np.abs(extra)) + 1e-9) * np.max(np.abs(base))
+ return out
+
+
+# --------------------------------------------------------------------------- weapons
+
+
+WEAPONS = {
+ # base thump, crack band, mech clack base, laser sweep start, tail decay
+ "rifle": dict(
+ thump=(150, 44), crack=(1400, 12000), clack=1650, zap=(2600, 340), tail=1.7, mass=1.0
+ ),
+ "pistol": dict(
+ thump=(190, 62), crack=(1900, 14000), clack=2300, zap=(3400, 520), tail=1.2, mass=0.7
+ ),
+}
+
+
+@recipe("weapon_mech")
+def weapon_mech(r, weapon: str, **_):
+ w = WEAPONS[weapon]
+ length = 0.22
+ first = _clack(r, length, w["clack"], 0.03)
+ if weapon == "rifle":
+ second = _clack(r, length, w["clack"] * 0.82, 0.04, 0.7)
+ return dsp.mix(length, (first, 1.0), (second, 0.65, 0.048 + r.uniform(-0.004, 0.004)))
+ slide = _clack(r, length, w["clack"] * 1.15, 0.025, 1.2)
+ return dsp.mix(length, (first, 1.0), (slide, 0.5, 0.032))
+
+
+@recipe("weapon_body")
+def weapon_body(r, weapon: str, **_):
+ w = WEAPONS[weapon]
+ length = 0.45
+ thump = _thud(
+ r, length, w["thump"][0] * r.uniform(0.95, 1.05), w["thump"][1], 0.09 * w["mass"], 3.0
+ )
+ crack = dsp.bandpass(dsp.white(r, length), *w["crack"]) * dsp.env_exp(length, 0.018, 0.0002)
+ zap = dsp.sweep(w["zap"][0] * r.uniform(0.96, 1.04), w["zap"][1], length, 6.0)
+ zap = dsp.saturate(zap * dsp.env_exp(length, 0.07), 1.6)
+ grit = dsp.bandpass(dsp.white(r, length), 300, 2500) * dsp.env_exp(length, 0.05)
+ x = 1.0 * thump + 0.9 * crack + 0.28 * zap + 0.35 * grit
+ x = dsp.peak_eq(x, 95, 0.8, 4.0)
+ return dsp.fade(dsp.saturate(x, 1.8), 0.0002, 0.05)
+
+
+@recipe("weapon_tail")
+def weapon_tail(r, weapon: str, decay_s: float = 0.0, bright: float = 2600.0, **_):
+ w = WEAPONS[weapon]
+ decay = decay_s or w["tail"]
+ length = decay * 1.3
+ exc = weapon_body(r, weapon)
+ ir = dsp.room_ir(r, length, decay, bright, early=(0.011, 0.019, 0.031, 0.047, 0.071))
+ wet = dsp.convolve(exc, ir, length)
+ wet[: dsp.seconds(0.012)] *= np.linspace(0, 1, dsp.seconds(0.012)) # no direct sound
+ slap = dsp.lowpass(dsp.pad(exc, length, 0.085 + r.uniform(0, 0.02)), 1800, 2)
+ return dsp.fade(wet + 0.25 * slap, 0.005, 0.2)
+
+
+@recipe("weapon_tp_near")
+def weapon_tp_near(r, weapon: str, **_):
+ length = 0.9
+ body = weapon_body(r, weapon)
+ mech = weapon_mech(r, weapon)
+ x = dsp.mix(length, (body, 1.0), (mech, 0.35))
+ x = dsp.lowpass(x, 9000, 2)
+ return dsp.fade(_room(r, x, length, 0.7, 2500, 0.3), 0.0005, 0.1)
+
+
+@recipe("weapon_tp_far")
+def weapon_tp_far(r, weapon: str, **_):
+ w = WEAPONS[weapon]
+ length = w["tail"] * 1.9
+ body = dsp.lowpass(weapon_body(r, weapon), 1100, 4)
+ body = dsp.mix(length, (body, 1.0, 0.004))
+ ir = dsp.room_ir(r, length, w["tail"] * 1.5, 900, early=(0.03, 0.055, 0.09, 0.14))
+ x = 0.6 * body + 1.0 * dsp.convolve(body, ir, length)
+ return dsp.fade(x, 0.004, 0.3)
+
+
+# --------------------------------------------------------------------------- bolts
+
+
+@recipe("bolt_flyby")
+def bolt_flyby(r, **_):
+ length = 0.42
+ t = dsp.t_axis(length)
+ center = 0.16 + r.uniform(-0.02, 0.02)
+ bell = np.exp(-(((t - center) / 0.055) ** 2))
+ whoosh = _scrape(r, length, 700, 5200, 0.0)
+ buzz = dsp.sweep(1250 * r.uniform(0.95, 1.05), 430, length, 3.0)
+ buzz = dsp.saturate(buzz, 2.5)
+ crackle = dsp.highpass(dsp.white(r, length), 5000, 2) * (r.random(len(t)) < 0.02)
+ x = (0.7 * whoosh + 0.45 * buzz + 0.3 * crackle) * bell
+ return dsp.fade(dsp.lowpass(x, 11000, 2))
+
+
+MATERIALS = {
+ "sheet_metal": dict(
+ modes=[620, 1180, 1940, 2870, 4100], decay=0.09, noise=(1500, 9000), thud=0.3
+ ),
+ "container_wall": dict(
+ modes=[210, 395, 640, 980, 1330], decay=0.22, noise=(400, 4000), thud=0.7
+ ),
+ "glass": dict(modes=[2600, 4150, 5600, 7300, 8900], decay=0.05, noise=(3000, 14000), thud=0.0),
+ "cladding_panel": dict(modes=[420, 910, 1500], decay=0.03, noise=(300, 2600), thud=0.5),
+ "catwalk_grating": dict(
+ modes=[980, 1640, 2410, 3300], decay=0.05, noise=(1200, 7000), thud=0.2
+ ),
+ "ceiling_panel": dict(modes=[300, 700], decay=0.02, noise=(200, 2200), thud=0.3),
+ "concrete": dict(modes=[180, 430], decay=0.015, noise=(500, 6000), thud=0.9),
+ "armor_steel": dict(modes=[1120, 2290, 3610, 5070], decay=0.45, noise=(4000, 15000), thud=0.2),
+}
+
+
+@recipe("impact")
+def impact(r, material: str, **_):
+ m = MATERIALS[material]
+ length = 0.7 if material in ("armor_steel", "container_wall", "glass") else 0.45
+ ring = dsp.modes(
+ r,
+ length,
+ m["modes"],
+ [m["decay"] * r.uniform(0.7, 1.3) for _ in m["modes"]],
+ [1.0 / (1 + 0.4 * i) for i in range(len(m["modes"]))],
+ 0.03,
+ )
+ crack = _burst(r, length, *m["noise"], 0.012)
+ thud = _thud(r, length, 160, 60, 0.05, 2.0)
+ parts = [(ring, 0.6), (crack, 1.0), (thud, m["thud"])]
+ if material == "glass":
+ parts.append((_debris(r, length, 60, 3500, 14000, 0.015, 0.02, 0.45), 0.6))
+ if material == "catwalk_grating":
+ parts.append((_debris(r, length, 30, 900, 5000, 0.03, 0.01, 0.2), 0.5))
+ if material in ("concrete", "ceiling_panel", "cladding_panel"):
+ parts.append((_debris(r, length, 40, 600, 6000, 0.01, 0.03, 0.35), 0.35))
+ if material == "armor_steel":
+ sizzle = dsp.highpass(dsp.white(r, length), 6000, 2) * dsp.env_exp(length, 0.12)
+ parts.append((sizzle, 0.25))
+ x = dsp.mix(length, *parts)
+ return dsp.fade(_room(r, x, length, 0.35, 4000, 0.18))
+
+
+@recipe("impact_flesh")
+def impact_flesh(r, **_):
+ length = 0.35
+ wet = dsp.lowpass(dsp.white(r, length), 900, 2) * dsp.env_exp(length, 0.035)
+ thump = _thud(r, length, 120, 55, 0.06, 2.5)
+ squelch = dsp.bandpass(dsp.white(r, length), 400, 1800) * dsp.env_exp(length, 0.08, 0.004)
+ return dsp.fade(1.0 * wet + 0.9 * thump + 0.3 * squelch)
+
+
+@recipe("penetration_exit")
+def penetration_exit(r, **_):
+ length = 0.5
+ t = dsp.t_axis(length)
+ tear = dsp.bandpass(dsp.white(r, length), 600, 4000)
+ tear *= np.clip(t / 0.01, 0, 1) * np.exp(-t / 0.06)
+ spray = _debris(r, length, 80, 1200, 9000, 0.01, 0.005, 0.3)
+ return dsp.fade(0.9 * tear + 0.6 * spray + 0.4 * _thud(r, length, 140, 70, 0.03))
+
+
+# --------------------------------------------------------------------------- foley
+
+
+SURFACES = {
+ "metal": dict(modes=[480, 1010, 1650], decay=0.03, noise=(700, 6000), grit=0.1),
+ "grating": dict(modes=[900, 1580, 2450], decay=0.04, noise=(1000, 7000), grit=0.2),
+ "concrete": dict(modes=[160], decay=0.01, noise=(400, 5000), grit=0.4),
+ "rubble": dict(modes=[220], decay=0.01, noise=(500, 8000), grit=1.0),
+}
+
+
+@recipe("footstep")
+def footstep(r, surface: str, **_):
+ s = SURFACES[surface]
+ length = 0.35
+ heel = _thud(r, length, 110, 60, 0.025, 1.5)
+ tap = _burst(r, length, *s["noise"], 0.01)
+ ring = dsp.modes(r, length, s["modes"], [s["decay"]] * len(s["modes"]), None, 0.04)
+ toe_at = 0.045 + r.uniform(-0.01, 0.015)
+ toe = _burst(r, length, s["noise"][0] * 1.3, s["noise"][1], 0.008)
+ parts = [
+ (heel, 0.8),
+ (tap, 0.7),
+ (ring, 0.35),
+ (toe, 0.45, toe_at),
+ (_scrape(r, 0.08, 1500, 7000, 0.0) * dsp.env_exp(0.08, 0.02), 0.15, toe_at),
+ ]
+ if s["grit"]:
+ parts.append(
+ (_debris(r, length, 120 * s["grit"], 2000, 10000, 0.004, 0.0, 0.12), s["grit"] * 0.5)
+ )
+ if surface == "grating":
+ parts.append((_debris(r, length, 25, 1100, 4000, 0.03, 0.01, 0.12), 0.35))
+ return dsp.fade(dsp.mix(length, *parts))
+
+
+@recipe("slide")
+def slide(r, **_):
+ length = 0.85
+ x = _scrape(r, length, 300, 4500, 0.6) * dsp.env_adsr(length, 0.03, 0.1, 0.8, 0.35)
+ gear = _debris(r, length, 12, 1500, 5000, 0.02, 0.05, 0.6)
+ return dsp.fade(0.9 * x + 0.5 * _cloth(r, length) + 0.3 * gear)
+
+
+@recipe("land")
+def land(r, **_):
+ length = 0.5
+ thud = _thud(r, length, 95, 45, 0.07, 2.5)
+ boots = dsp.mix(length, (footstep(r, "metal"), 0.8), (footstep(r, "metal"), 0.6, 0.018))
+ gear = _debris(r, length, 30, 1200, 6000, 0.025, 0.01, 0.2)
+ return dsp.fade(1.0 * thud + 0.6 * boots + 0.4 * gear + 0.4 * _cloth(r, length))
+
+
+@recipe("mantle")
+def mantle(r, **_):
+ length = 0.8
+ grab = _clack(r, 0.3, 900, 0.03, 0.5)
+ scuff = _scrape(r, 0.4, 600, 4000, 0.3) * dsp.env_adsr(0.4, 0.02, 0.1, 0.7, 0.2)
+ step = footstep(r, "metal")
+ return dsp.fade(
+ dsp.mix(
+ length, (grab, 0.7), (_cloth(r, 0.6), 0.6, 0.05), (scuff, 0.5, 0.15), (step, 0.7, 0.5)
+ )
+ )
+
+
+@recipe("lean")
+def lean(r, **_):
+ length = 0.3
+ click = _clack(r, length, 2600, 0.01, 0.6) * 0.15
+ return dsp.fade(_cloth(r, length, 1.0) + click)
+
+
+@recipe("prone")
+def prone(r, down: bool = True, **_):
+ length = 0.9
+ body = _thud(r, length, 85, 40, 0.09, 2.0)
+ gear = _debris(r, length, 25, 1000, 5000, 0.03, 0.05, 0.4)
+ when = 0.25 if down else 0.0
+ return dsp.fade(
+ dsp.mix(
+ length,
+ (_cloth(r, 0.8, 1.2), 0.8),
+ (body, 0.8 if down else 0.3, when),
+ (gear, 0.4, when),
+ )
+ )
+
+
+# --------------------------------------------------------------------------- reloads, equip, melee
+
+
+def _mag_out(r, length):
+ rel = _clack(r, length, 2100, 0.012, 0.8)
+ slide_ = _scrape(r, 0.18, 1200, 6000, 0.0) * dsp.env_adsr(0.18, 0.01, 0.05, 0.6, 0.1)
+ return dsp.mix(length, (rel, 0.7), (slide_, 0.45, 0.05))
+
+
+def _mag_in(r, length, heavy=1.0):
+ seat = _clack(r, length, 1300, 0.025, 0.9)
+ thump = _thud(r, length, 200, 90, 0.02, 2.0)
+ return dsp.mix(length, (seat, 0.9), (thump, 0.5 * heavy))
+
+
+@recipe("reload")
+def reload(r, weapon: str, empty: bool, **_):
+ rifle = weapon == "rifle"
+ length = (2.6 if empty else 1.9) if rifle else (1.9 if empty else 1.4)
+ parts = [(_cloth(r, 0.5, 0.6), 0.4, 0.0), (_mag_out(r, 0.4), 1.0, 0.12)]
+ seat_at = 0.95 if rifle else 0.7
+ parts += [
+ (_cloth(r, 0.4, 0.5), 0.3, seat_at - 0.35),
+ (_mag_in(r, 0.4, 1.0 if rifle else 0.6), 1.0, seat_at),
+ (_clack(r, 0.2, 1500, 0.01, 0.5), 0.35, seat_at + 0.09),
+ ]
+ if empty:
+ pull_at = seat_at + 0.55
+ if rifle:
+ parts += [
+ (_clack(r, 0.25, 1900, 0.02, 1.0), 0.8, pull_at),
+ (_scrape(r, 0.12, 900, 5000, 0.0) * dsp.env_exp(0.12, 0.04), 0.4, pull_at + 0.01),
+ (_clack(r, 0.3, 1450, 0.04, 1.0), 1.0, pull_at + 0.16),
+ ]
+ else:
+ parts += [(_clack(r, 0.3, 2400, 0.03, 1.0), 1.0, pull_at - 0.1)]
+ return dsp.fade(dsp.mix(length, *parts), 0.001, 0.05)
+
+
+@recipe("equip")
+def equip(r, weapon: str, **_):
+ length = 0.7
+ if weapon == "knife":
+ ring = dsp.modes(r, 0.6, [3100, 5200, 7400], [0.18, 0.12, 0.08], [0.6, 0.4, 0.3])
+ draw = _scrape(r, 0.25, 2500, 11000, 0.0) * dsp.env_adsr(0.25, 0.02, 0.05, 0.8, 0.15)
+ return dsp.fade(dsp.mix(length, (draw, 0.8), (ring, 0.25, 0.2)))
+ clink = _debris(r, length, 8, 2500, 8000, 0.02, 0.05, 0.25)
+ check = _clack(r, 0.3, 1700 if weapon == "rifle" else 2200, 0.02, 0.8)
+ return dsp.fade(dsp.mix(length, (_cloth(r, 0.5, 1.0), 0.7), (clink, 0.3), (check, 0.8, 0.38)))
+
+
+@recipe("knife_swing")
+def knife_swing(r, **_):
+ length = 0.35
+ t = dsp.t_axis(length)
+ bell = np.exp(-(((t - 0.12) / 0.045) ** 2))
+ return dsp.fade(_scrape(r, length, 900, 7000, 0.0) * bell + 0.3 * _cloth(r, length) * bell)
+
+
+@recipe("knife_hit")
+def knife_hit(r, **_):
+ length = 0.4
+ stab = impact_flesh(r)
+ crunch = _debris(r, length, 60, 600, 3000, 0.008, 0.01, 0.08)
+ return dsp.fade(dsp.mix(length, (knife_swing(r), 0.4), (stab, 1.0, 0.1), (crunch, 0.4, 0.11)))
+
+
+@recipe("finisher")
+def finisher(r, phase: str, **_):
+ if phase == "takedown":
+ length = 0.9
+ slam = _thud(r, length, 90, 38, 0.12, 3.0)
+ gear = _debris(r, length, 40, 900, 6000, 0.03, 0.02, 0.4)
+ return dsp.fade(
+ dsp.mix(length, (_cloth(r, 0.6, 1.4), 0.7), (slam, 1.0, 0.25), (gear, 0.4, 0.26))
+ )
+ if phase == "struggle":
+ length = 1.2
+ scuffs = sum(
+ dsp.pad(
+ _scrape(r, 0.2, 400, 3000, 0.2) * dsp.env_exp(0.2, 0.06), length, r.uniform(0, 1.0)
+ )
+ for _ in range(5)
+ )
+ return dsp.fade(0.8 * _cloth(r, length, 1.3) + 0.5 * scuffs)
+ length = 0.9
+ stab = knife_hit(r)
+ slump = _thud(r, length, 80, 40, 0.1, 2.0)
+ return dsp.fade(
+ dsp.mix(length, (stab, 1.0), (slump, 0.6, 0.45), (_cloth(r, 0.5, 0.8), 0.4, 0.42))
+ )
+
+
+# ------------------------------------------------------------- destruction, drones, gadgets
+
+
+@recipe("destruction")
+def destruction(r, piece: str, **_):
+ length = 2.2
+ if piece == "glass_pane":
+ crack = _burst(r, length, 3000, 15000, 0.02)
+ shards = _debris(r, length, 220, 3000, 15000, 0.02, 0.02, 1.2)
+ rings = dsp.modes(r, length, [2900, 4400, 6100, 8100], [0.2, 0.15, 0.1, 0.08])
+ return dsp.fade(dsp.mix(length, (crack, 1.0), (shards, 0.9), (rings, 0.2)), 0.0005, 0.3)
+ spec = {
+ "wall_panel": ([380, 720, 1150, 1720], 0.35, (500, 6000), 0.8),
+ "cladding_wall": ([300, 640, 1020], 0.12, (300, 3500), 0.9),
+ "container_wall": ([150, 290, 470, 760], 0.6, (250, 3000), 1.0),
+ "catwalk_segment": ([700, 1250, 1900, 2700], 0.4, (800, 6000), 0.7),
+ "ceiling_panel": ([260, 520], 0.05, (200, 3000), 0.5),
+ }[piece]
+ freqs, decay, band, weight = spec
+ boom = _thud(r, length, 120, 35, 0.25 * weight, 3.5)
+ tear = _scrape(r, 0.6, *band, 0.5) * dsp.env_exp(0.6, 0.2, 0.003)
+ ring = dsp.modes(r, length, freqs, [decay * r.uniform(0.7, 1.3) for _ in freqs])
+ chunks = _debris(r, length, 45, band[0], band[1], 0.04, 0.08, 1.6)
+ parts = [(boom, 1.0 * weight), (tear, 0.8), (ring, 0.35), (chunks, 0.7)]
+ if piece == "catwalk_segment":
+ screech = dsp.sweep(900, 520, 0.9, 1.0) * dsp.env_adsr(0.9, 0.1, 0.2, 0.6, 0.3)
+ parts.append((dsp.saturate(screech, 3.0) * 0.6, 0.3, 0.05))
+ if piece == "ceiling_panel":
+ parts.append((_debris(r, length, 200, 800, 6000, 0.006, 0.1, 1.8), 0.5))
+ x = dsp.mix(length, *parts)
+ return dsp.fade(_room(r, x, length, 1.4, 2200, 0.3), 0.0005, 0.3)
+
+
+@recipe("debris_settle")
+def debris_settle(r, kind: str, **_):
+ length = 1.6
+ lo, hi, d = {
+ "metal": (900, 7000, 0.05),
+ "glass": (3000, 15000, 0.025),
+ "dust": (500, 6000, 0.01),
+ }[kind]
+ x = _debris(r, length, 30, lo, hi, d, 0.0, 1.4)
+ if kind == "dust":
+ x += 0.3 * dsp.lowpass(dsp.pink(r, length), 2500, 2) * dsp.env_exp(length, 0.6, 0.05)
+ return dsp.fade(x, 0.002, 0.2)
+
+
+@recipe("drone_flight")
+def drone_flight(r, **_):
+ length = 4.0
+ t = dsp.t_axis(length)
+ f = 172 * (1 + 0.01 * np.sin(2 * np.pi * 0.7 * t))
+ phase = 2 * np.pi * np.cumsum(f) / SR
+ rotor = sum(np.sin(k * phase) / k for k in range(1, 9))
+ chop = 0.6 + 0.4 * np.sin(2 * np.pi * 31 * t) ** 2
+ air = dsp.bandpass(dsp.white(r, length), 400, 3500)
+ x = 0.5 * rotor * chop + 0.35 * air + 0.2 * np.sin(2 * np.pi * 60 * t)
+ return dsp.loopable(x, 0.4)
+
+
+@recipe("drone_weld")
+def drone_weld(r, **_):
+ length = 4.0
+ t = dsp.t_axis(length)
+ arc = dsp.highpass(dsp.white(r, length), 2500, 2)
+ gate = dsp.lowpass((r.random(len(t)) < 0.03).astype(float), 300, 1)
+ gate = gate / (np.max(gate) + 1e-9)
+ hum = np.sin(2 * np.pi * 100 * t) + 0.4 * np.sin(2 * np.pi * 200 * t)
+ pops = _debris(r, length, 6, 1500, 9000, 0.02, 0.0, length)
+ return dsp.loopable(0.6 * arc * (0.3 + gate) + 0.15 * hum + 0.4 * pops, 0.4)
+
+
+@recipe("bulwark")
+def bulwark(r, event: str, **_):
+ if event == "hum":
+ length = 4.0
+ t = dsp.t_axis(length)
+ hum = (
+ np.sin(2 * np.pi * 58 * t)
+ + 0.5 * np.sin(2 * np.pi * 116 * t)
+ + 0.2 * np.sin(2 * np.pi * 174 * t)
+ )
+ shimmer = dsp.bandpass(dsp.white(r, length), 2000, 6000) * (
+ 0.5 + 0.5 * np.sin(2 * np.pi * 0.5 * t)
+ )
+ return dsp.loopable(0.6 * hum + 0.08 * shimmer, 0.5)
+ if event == "deploy":
+ length = 1.1
+ rise = dsp.saturate(
+ dsp.sweep(80, 420, 0.6, -2.0) * dsp.env_adsr(0.6, 0.05, 0.2, 0.7, 0.3), 2.0
+ )
+ clamp = _clack(r, 0.4, 700, 0.06, 0.6)
+ return dsp.fade(
+ dsp.mix(
+ length, (clamp, 0.9), (rise, 0.6, 0.1), (_thud(r, 0.5, 140, 50, 0.08), 0.8, 0.05)
+ )
+ )
+ length = 1.4 # destroyed
+ fall = dsp.saturate(dsp.sweep(420, 50, 0.9, 2.0) * dsp.env_exp(0.9, 0.35), 2.0)
+ crack = destruction(r, "cladding_wall")
+ return dsp.fade(dsp.mix(length, (fall, 0.7), (crack, 0.6)))
+
+
+@recipe("breach")
+def breach(r, event: str, **_):
+ if event == "plant":
+ length = 0.8
+ clamp = _clack(r, 0.4, 600, 0.05, 0.4)
+ beep = np.sin(2 * np.pi * 2200 * dsp.t_axis(0.09)) * dsp.env_adsr(
+ 0.09, 0.005, 0.02, 0.8, 0.03
+ )
+ return dsp.fade(dsp.mix(length, (clamp, 1.0), (beep, 0.25, 0.35), (beep, 0.25, 0.55)))
+ length = 3.5
+ blast = dsp.lowpass(dsp.white(r, length), 6000, 2) * dsp.env_exp(length, 0.12, 0.001)
+ sub = _thud(r, length, 70, 22, 0.4, 4.0)
+ debris = _debris(r, length, 60, 600, 7000, 0.04, 0.15, 2.5)
+ x = dsp.mix(length, (blast, 1.0), (sub, 1.2), (debris, 0.5))
+ return dsp.fade(_room(r, x, length, 2.5, 1600, 0.5), 0.0005, 0.4)
+
+
+# --------------------------------------------------------------------------- ambience, UI
+
+
+@recipe("crew_bed")
+def crew_bed(r, **_):
+ length = 12.0
+ room = dsp.lowpass(dsp.pink(r, length), 1200, 2) * 0.25
+ keys = _debris(r, length, 4, 2500, 9000, 0.004, 0.0, length) * 0.5
+ creaks = (
+ sum(
+ dsp.pad(
+ _scrape(r, 0.5, 300, 1500, 0.0) * dsp.env_adsr(0.5, 0.1, 0.1, 0.5, 0.3),
+ length,
+ r.uniform(0, length - 0.6),
+ )
+ for _ in range(4)
+ )
+ * 0.2
+ )
+ clatter = (
+ sum(
+ dsp.pad(
+ _clack(r, 0.3, r.uniform(600, 1400), 0.05, 0.5), length, r.uniform(0, length - 0.4)
+ )
+ for _ in range(3)
+ )
+ * 0.08
+ )
+ return dsp.loopable(room + keys + creaks + clatter, 0.8)
+
+
+@recipe("ui_tone")
+def ui_tone(r, notes: list, step_s: float = 0.06, decay_s: float = 0.08, **_):
+ length = step_s * len(notes) + decay_s * 4
+ out = dsp.mix(
+ length,
+ *[
+ (
+ dsp.modes(
+ r,
+ decay_s * 4,
+ [f, 2 * f, 3.01 * f],
+ [decay_s, decay_s * 0.5, decay_s * 0.3],
+ [1, 0.25, 0.1],
+ 0.0,
+ ),
+ 1.0,
+ i * step_s,
+ )
+ for i, f in enumerate(notes)
+ ],
+ )
+ return dsp.fade(out, 0.002, 0.02)
+
+
+@recipe("ui_tick")
+def ui_tick(r, hz: float = 3200.0, **_):
+ length = 0.05
+ return dsp.fade(
+ _burst(r, length, hz * 0.7, hz * 1.6, 0.004)
+ + 0.3 * np.sin(2 * np.pi * hz * dsp.t_axis(length)) * dsp.env_exp(length, 0.006)
+ )
+
+
+@recipe("bell")
+def bell(r, **_):
+ length = 2.5
+ f = 660.0
+ ratios = [0.5, 1.0, 1.183, 1.506, 2.0, 2.514, 2.662, 3.011]
+ x = dsp.modes(
+ r,
+ length,
+ [f * k for k in ratios],
+ [1.2, 0.9, 0.7, 0.6, 0.5, 0.4, 0.35, 0.3],
+ [0.4, 1.0, 0.5, 0.4, 0.35, 0.2, 0.15, 0.1],
+ 0.0,
+ )
+ return dsp.fade(x, 0.001, 0.3)
+
+
+def build(recipe_name: str, seed: int, params: dict) -> np.ndarray:
+ if recipe_name not in RECIPES:
+ raise KeyError(f"unknown recipe {recipe_name!r}")
+ return RECIPES[recipe_name](dsp.rng(seed), **params)
diff --git a/art/verse/audio/reference_mix.py b/art/verse/audio/reference_mix.py
new file mode 100644
index 0000000000..0e6d75e9c2
--- /dev/null
+++ b/art/verse/audio/reference_mix.py
@@ -0,0 +1,247 @@
+#!/usr/bin/env python3
+"""Render the reference duel replay offline and measure it (WP19 A19.4).
+
+The replay is ``unreal/Verse/Data/audio/reference_duel.json``: a fixed 90 s
+hangar duel as the listener hears it (own shots, the opponent's shots at
+range, flybys, impacts, footsteps, reloads, breaks, a breach and a finisher
+over the hangar bed). The mix uses the same rules as
+``UVerseAudioSubsystem``: cue volumes, bus gains and master gain from
+``mix.json``, the distance curve of ``VerseAudioAttenuation.cpp``, the shot
+layer crossfade and the no-repeat variant picker.
+
+Pass: integrated -16 LUFS within 1 LU, true peak at most -1 dBTP.
+
+ python art/verse/audio/reference_mix.py # report + WAV in Saved/
+ python art/verse/audio/reference_mix.py --check # exit 1 when it fails
+"""
+
+from __future__ import annotations
+
+import argparse
+import json
+import sys
+from pathlib import Path
+
+import numpy as np
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+
+import build_audio # noqa: E402
+import dsp # noqa: E402
+import loudness # noqa: E402
+
+REPO_ROOT = build_audio.REPO_ROOT
+DATA_DIR = build_audio.DATA_DIR
+PROOF_DIR = REPO_ROOT / "unreal" / "Verse" / "Saved" / "Harness" / "proof" / "WP19" / "19.1"
+TARGET_LUFS, TOLERANCE_LU, MAX_TRUE_PEAK = -16.0, 1.0, -1.0
+
+#: bot.md 3.2 ranges in metres; whole-arena rows have no range (None). Mirrors DA_Audibility.
+NOISE_RANGE_M = {
+ "Noise.Shot": None,
+ "Noise.Footstep.Sprint": 20.0,
+ "Noise.Footstep.Run": 10.0,
+ "Noise.Footstep.Walk": 4.0,
+ "Noise.Move.Slide": 12.0,
+ "Noise.Move.Land": 12.0,
+ "Noise.Move.Mantle": 12.0,
+ "Noise.Reload": 7.0,
+ "Noise.Gadget.BulwarkDeploy": 15.0,
+ "Noise.Gadget.BulwarkHum": 5.0,
+ "Noise.Gadget.BreachPlant": 10.0,
+ "Noise.Gadget.BreachDetonate": None,
+ "Noise.Fracture": 40.0, # x loudness
+ "Noise.Drone": 40.0, # x loudness
+ "Noise.Melee": 8.0,
+ "Noise.Finisher": 8.0,
+ "Noise.Impact": 3.0,
+}
+SCALED = {"Noise.Fracture", "Noise.Drone"}
+
+
+def db(x: float) -> float:
+ return 10 ** (x / 20)
+
+
+def distance_gain(d: float, range_m: float | None, dist: dict) -> float:
+ """Python twin of Verse::Audio::DistanceGain."""
+ ref, roll = dist["reference_m"], dist["rolloff"]
+ g = 1.0 if d <= ref else (ref / d) ** roll
+ g = max(g, db(dist["floor_db"]))
+ if range_m is None:
+ return g
+ if d >= range_m:
+ return 0.0
+ start = dist["fade_start_fraction"] * range_m
+ if d > start:
+ u = (d - start) / (range_m - start)
+ g *= 1 - (3 * u * u - 2 * u**3)
+ return g
+
+
+def smoothstep(a: float, b: float, x: float) -> float:
+ u = min(max((x - a) / (b - a), 0.0), 1.0)
+ return u * u * (3 - 2 * u)
+
+
+class Picker:
+ """No-repeat variant picker (parity Z-15), same rule as FVerseVariantPicker."""
+
+ def __init__(self, seed: int = 7):
+ self.rng = np.random.default_rng(seed)
+ self.last: dict[str, int] = {}
+
+ def pick(self, cue: str, count: int) -> int:
+ if count <= 1:
+ return 0
+ last = self.last.get(cue, -1)
+ v = int(self.rng.integers(0, count - 1 if last >= 0 else count))
+ if last >= 0 and v >= last:
+ v += 1
+ self.last[cue] = v
+ return v
+
+
+def render(events: list[dict], length_s: float, cues: dict, mix: dict, cache: Path) -> np.ndarray:
+ out = np.zeros(dsp.seconds(length_s))
+ picker = Picker()
+ sounds: dict[str, np.ndarray] = {}
+
+ def sound(cue_id: str, variant: int) -> np.ndarray:
+ key = f"{cue_id}:{variant}"
+ if key not in sounds:
+ c = cues[cue_id]
+ sounds[key] = build_audio.read_wav(
+ cache / c["group"] / f"{build_audio.asset_name(cue_id, variant)}.wav"
+ )
+ return sounds[key]
+
+ def place(cue_id: str, at: float, gain: float, until: float | None = None) -> None:
+ c = cues[cue_id]
+ v = picker.pick(cue_id, int(c["variants"]))
+ x = sound(cue_id, v)
+ g = (
+ gain
+ * float(np.mean(c["volume"]))
+ * db(mix["bus_gain_db"][c["bus"]])
+ * db(mix["master_gain_db"])
+ )
+ start = dsp.seconds(at)
+ if c.get("loop"):
+ end = dsp.seconds(until if until is not None else length_s)
+ reps = int(np.ceil((end - start) / len(x))) + 1
+ x = np.tile(x, reps)[: end - start]
+ n = min(len(x), len(out) - start)
+ if n > 0:
+ out[start : start + n] += g * x[:n]
+
+ dist = mix["distance"]
+ for ev in events:
+ at, d = float(ev["t"]), float(ev.get("d", 0.0))
+ kind = ev["kind"]
+ if kind == "shot":
+ w = ev.get("weapon", "rifle")
+ if ev.get("own"):
+ for layer in ("fp_mech", "fp_body", "tail"):
+ place(f"wpn_{w}_{layer}", at, 1.0)
+ else:
+ g = distance_gain(d, None, dist)
+ far = smoothstep(
+ mix["shot_layers"]["near_full_m"], mix["shot_layers"]["far_full_m"], d
+ )
+ place(f"wpn_{w}_tp_near", at, g * (1 - far))
+ place(f"wpn_{w}_tp_far", at, g * far)
+ place(f"wpn_{w}_tp_tail", at, g)
+ continue
+ cue_id = ev["cue"]
+ c = cues[cue_id]
+ gain = float(ev.get("gain", 1.0))
+ if c["space"] == "3d" and not ev.get("own"):
+ noise = c.get("noise") or ""
+ if ev.get("own_feedback") and c.get("range_m"):
+ rng_m = float(c["range_m"])
+ elif noise:
+ base = NOISE_RANGE_M[noise]
+ rng_m = (
+ None
+ if base is None
+ else base * (float(ev.get("loudness", 1.0)) if noise in SCALED else 1.0)
+ )
+ else:
+ rng_m = float(c.get("range_m") or 0.0) or None
+ gain *= distance_gain(d, rng_m, dist)
+ place(cue_id, at, gain, ev.get("until"))
+ return out
+
+
+def limit(x: np.ndarray, lim: dict) -> np.ndarray:
+ """Look-ahead peak limiter: model of the SMX_VerseMaster dynamics processor (limiter mode)."""
+ thr = db(lim["threshold_db"])
+ look = max(1, dsp.seconds(lim["lookahead_ms"] / 1000))
+ rel = np.exp(-1.0 / (lim["release_ms"] / 1000 * dsp.SR))
+ att = np.exp(-1.0 / (lim["attack_ms"] / 1000 * dsp.SR))
+ # Peak of the window ahead (the signal is delayed by `look`, so the gain is ready in time).
+ padded = np.concatenate([np.abs(x), np.zeros(look)])
+ from scipy.ndimage import maximum_filter1d
+
+ ahead = maximum_filter1d(padded, size=look + 1, origin=-(look // 2))[: len(x)]
+ want = np.minimum(1.0, thr / np.maximum(ahead, 1e-12))
+ gain = np.empty_like(want)
+ g = 1.0
+ for i, w in enumerate(want):
+ g = w if w < g else g # instant attack inside the look-ahead window
+ g = w + (g - w) * (att if w < g else rel)
+ gain[i] = g
+ return x * gain
+
+
+def run(check: bool) -> dict:
+ cues_doc = build_audio.load_cues()
+ cues = {c["id"]: c for c in cues_doc["cues"]}
+ mix = json.loads((DATA_DIR / "mix.json").read_text(encoding="utf-8"))
+ replay = json.loads((DATA_DIR / "reference_duel.json").read_text(encoding="utf-8"))
+ cache = build_audio.CACHE_DIR
+ missing = [
+ cid
+ for cid in cues
+ if not (cache / cues[cid]["group"] / f"{build_audio.asset_name(cid, 0)}.wav").exists()
+ ]
+ if missing:
+ build_audio.build()
+ x = render(replay["events"], float(replay["length_s"]), cues, mix, cache)
+ x = limit(x, mix["limiter"])
+ lufs = loudness.integrated_lufs(x, dsp.SR)
+ tp = loudness.true_peak_dbtp(x, dsp.SR)
+ ok = abs(lufs - TARGET_LUFS) <= TOLERANCE_LU and tp <= MAX_TRUE_PEAK
+ report = {
+ "test": "A19.4 loudness",
+ "replay": "unreal/Verse/Data/audio/reference_duel.json",
+ "events": len(replay["events"]),
+ "length_s": replay["length_s"],
+ "integrated_lufs": round(lufs, 2),
+ "true_peak_dbtp": round(tp, 2),
+ "target_lufs": TARGET_LUFS,
+ "tolerance_lu": TOLERANCE_LU,
+ "max_true_peak_dbtp": MAX_TRUE_PEAK,
+ "master_gain_db": mix["master_gain_db"],
+ "limiter": mix["limiter"],
+ "pass": bool(ok),
+ }
+ PROOF_DIR.mkdir(parents=True, exist_ok=True)
+ build_audio.write_wav(PROOF_DIR / "reference_duel_capture.wav", x)
+ (PROOF_DIR / "loudness_report.json").write_text(json.dumps(report, indent=1), encoding="utf-8")
+ print(json.dumps(report, indent=1))
+ if check and not ok:
+ raise SystemExit(1)
+ return report
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("--check", action="store_true", help="exit 1 when the loudness gate fails")
+ args = parser.parse_args(argv)
+ run(args.check)
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/art/verse/audio/tests/test_verse_audio.py b/art/verse/audio/tests/test_verse_audio.py
new file mode 100644
index 0000000000..c343c6f1de
--- /dev/null
+++ b/art/verse/audio/tests/test_verse_audio.py
@@ -0,0 +1,183 @@
+"""Tests of the WP19 sound builders, loudness meter, reference mix and licence audit."""
+
+from __future__ import annotations
+
+import json
+import re
+import sys
+from pathlib import Path
+
+import numpy as np
+import pytest
+
+HERE = Path(__file__).resolve().parents[1]
+sys.path.insert(0, str(HERE))
+
+import audit_licences # noqa: E402
+import build_audio # noqa: E402
+import dsp # noqa: E402
+import loudness # noqa: E402
+import recipes # noqa: E402
+import reference_mix # noqa: E402
+
+REPO = build_audio.REPO_ROOT
+DATA = build_audio.DATA_DIR
+UI_SRC = REPO / "unreal" / "Verse" / "Source" / "VerseUI"
+
+
[email protected](scope="module")
+def cues() -> dict:
+ return build_audio.load_cues()
+
+
+def test_full_scale_sine_reads_minus_3_lufs():
+ t = np.arange(dsp.SR * 3) / dsp.SR
+ x = np.sin(2 * np.pi * 997 * t)
+ assert loudness.integrated_lufs(x, dsp.SR) == pytest.approx(-3.01, abs=0.1)
+ assert loudness.integrated_lufs(0.1 * x, dsp.SR) == pytest.approx(-23.01, abs=0.1)
+
+
+def test_true_peak_of_half_scale_sine():
+ t = np.arange(dsp.SR) / dsp.SR
+ assert loudness.true_peak_dbtp(0.5 * np.sin(2 * np.pi * 1000 * t), dsp.SR) == pytest.approx(
+ -6.02, abs=0.05
+ )
+
+
+def test_silence_has_no_loudness():
+ assert loudness.integrated_lufs(np.zeros(dsp.SR * 2), dsp.SR) == float("-inf")
+
+
+def test_every_cue_has_a_recipe_and_a_known_noise_tag(cues):
+ ids = [c["id"] for c in cues["cues"]]
+ assert len(ids) == len(set(ids))
+ for c in cues["cues"]:
+ assert c["recipe"] in recipes.RECIPES, c["id"]
+ assert not c["noise"] or c["noise"] in reference_mix.NOISE_RANGE_M, c["id"]
+ assert c["space"] in ("2d", "3d")
+ assert c["bus"] in json.loads((DATA / "mix.json").read_text())["bus_gain_db"]
+ assert (
+ re.fullmatch(r"[a-z0-9_]+", c["id"]) and len(build_audio.asset_name(c["id"], 9)) <= 64
+ )
+
+
+def test_repeated_one_shots_have_variants_so_no_take_repeats(cues):
+ """Parity Z-15: a cue that fires again and again needs at least two takes."""
+ for c in cues["cues"]:
+ if c["group"] in ("Weapons", "Impacts", "Foley") and not c["loop"]:
+ assert c["variants"] >= 2, c["id"]
+
+
+def test_noise_ranges_match_the_audibility_contract():
+ """F6: the Python mixer's ranges are the bot.md 3.2 table that DA_Audibility holds."""
+ core = (
+ REPO / "unreal/Verse/Source/VerseCore/Private/Noise/VerseAudibilityTable.cpp"
+ ).read_text()
+ rows = dict(re.findall(r"MakeRow\(Noise_(\w+), ([\w.]+)f?,", core))
+ def key(tag: str) -> str:
+ return tag.removeprefix("Noise.").replace(".", "_")
+
+ by_key = {key(t): r for t, r in reference_mix.NOISE_RANGE_M.items()}
+ assert set(by_key) == set(rows), "reference_mix and the Core rows list different tags"
+ whole = set(re.findall(r"MakeRow\(Noise_(\w+), [\w.]+, [\d.]+f, true\)", core))
+ scaled = set(re.findall(r"MakeRow\(Noise_(\w+), [^)]*, false, true\)", core))
+ assert {k for k, r in by_key.items() if r is None} == whole
+ assert {key(s) for s in reference_mix.SCALED} == scaled
+ for tag, rng in reference_mix.NOISE_RANGE_M.items():
+ key = tag.removeprefix("Noise.").replace(".", "_")
+ assert key in rows, tag
+ value = rows[key]
+ if value == "FractureRange":
+ assert rng == 40.0
+ elif rng is None:
+ assert float(value.rstrip("f")) == 0.0 # whole arena
+ else:
+ assert float(value.rstrip("f")) == rng, tag
+
+
+def test_distance_law_ends_exactly_at_the_range():
+ mix = json.loads((DATA / "mix.json").read_text())["distance"]
+ assert reference_mix.distance_gain(0.5, 10.0, mix) == 1.0
+ assert reference_mix.distance_gain(10.0, 10.0, mix) == 0.0
+ assert reference_mix.distance_gain(9.8, 10.0, mix) > 0.0
+ assert reference_mix.distance_gain(100.0, None, mix) > 0.0
+
+
+def test_cpp_mix_defaults_match_mix_json():
+ """The C++ defaults of FVerseAudioMixSettings equal the committed data (no silent drift)."""
+ mix = json.loads((DATA / "mix.json").read_text())
+ occ = json.loads((DATA / "occlusion.json").read_text())
+ cpp = (UI_SRC / "Private/Audio/VerseAudioCueSet.cpp").read_text()
+ header = (UI_SRC / "Public/Audio/VerseAudioTypes.h").read_text()
+ header = header[header.index("struct VERSEUI_API FVerseAudioMixSettings") :]
+
+ def floats(name: str) -> list[float]:
+ body = re.search(name + r" = \{([^}]*)\}", cpp).group(1)
+ return [float(v.strip().rstrip("f")) for v in body.split(",")]
+
+ order = ["Weapons", "Impacts", "Foley", "Destruction", "Gadgets", "Ambience", "UI"]
+ assert floats("BusGainDb") == [mix["bus_gain_db"][b] for b in order]
+ assert floats("OcclusionLossDb") == [m["transmission_db"] for m in occ["materials"]]
+ assert floats("OcclusionLowpassHz") == [m["lowpass_hz"] for m in occ["materials"]]
+
+ def default(name: str) -> float:
+ return float(re.search(rf"\b{name} = (-?[\d.]+)f?;", header).group(1))
+
+ assert default("MasterGainDb") == mix["master_gain_db"]
+ assert default("MaxVoices") == mix["max_voices"] == 64
+ assert default("ReferenceM") == mix["distance"]["reference_m"]
+ assert default("Rolloff") == mix["distance"]["rolloff"]
+ assert default("LimiterThresholdDb") == mix["limiter"]["threshold_db"]
+
+
+def test_build_is_deterministic(tmp_path, cues):
+ cue = next(c for c in cues["cues"] if c["id"] == "wpn_rifle_fp_body")
+ a = build_audio.render_variant(cue, 0)
+ b = build_audio.render_variant(cue, 0)
+ c = build_audio.render_variant(cue, 1)
+ assert np.array_equal(a, b)
+ assert not np.array_equal(a[: len(c)], c[: len(a)])
+ peak = 20 * np.log10(np.max(np.abs(a)))
+ assert peak == pytest.approx(cue["peak_db"], abs=0.01)
+
+
+def test_every_recipe_renders_finite_audio(cues):
+ for c in cues["cues"]:
+ x = build_audio.render_variant(c, 0)
+ assert np.isfinite(x).all(), c["id"]
+ assert 0.03 < len(x) / dsp.SR < 15.0, c["id"]
+ assert np.sqrt(np.mean(x**2)) > 10 ** (-60 / 20), c["id"]
+
+
+def test_reference_duel_meets_the_loudness_gate():
+ """A19.4: integrated -16 LUFS within 1 LU, true peak at most -1 dBTP."""
+ report = reference_mix.run(check=False)
+ assert report["pass"], report
+ assert abs(report["integrated_lufs"] + 16.0) <= 1.0
+ assert report["true_peak_dbtp"] <= -1.0
+
+
+def test_licence_audit_passes_on_the_repo(cues):
+ assert (
+ audit_licences.audit(cues, audit_licences.ledger_rows(), audit_licences.CONTENT, False)
+ == []
+ )
+
+
+def test_licence_audit_catches_orphans_and_missing_rows(tmp_path, cues):
+ content = tmp_path / "Audio" / "Weapons"
+ content.mkdir(parents=True)
+ (content / "SW_not_a_cue_01.uasset").write_bytes(b"x")
+ rows = [r for r in audit_licences.ledger_rows() if "step_1.ogg" not in r["file"]]
+ problems = audit_licences.audit(cues, rows, tmp_path / "Audio", True)
+ text = "\n".join(problems)
+ assert "SW_not_a_cue_01" in text
+ assert "no ledger row" in text and "step_1.ogg" in text
+ assert "has no imported asset" in text
+
+
+def test_licence_audit_rejects_an_unknown_licence(cues):
+ doc = json.loads(json.dumps(cues))
+ doc["cues"][0]["licence"] = "unknown"
+ problems = audit_licences.audit(doc, audit_licences.ledger_rows(), Path("/nonexistent"), False)
+ assert any("neither 'own'" in p for p in problems)
diff --git a/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_bridge_01.uasset b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_bridge_01.uasset
new file mode 100644
index 0000000000..78a1c54a4d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_bridge_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a66d68c2d6f9bd44dcfe62e4cb77974294f140b859181e2119873b8ad62d1f3
+size 209670
diff --git a/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_crew_bed_01.uasset b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_crew_bed_01.uasset
new file mode 100644
index 0000000000..700ba23923
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_crew_bed_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:78d0cc9e28bd4a11db4db87f3ee39fa032df8d18432c0221fb122287ad099c3c
+size 392034
diff --git a/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_engineering_01.uasset b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_engineering_01.uasset
new file mode 100644
index 0000000000..ce82a988bb
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_engineering_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0f7bcfe535e4e1c39d937c46760181e875cd5384bd0a9a2c4d864e78fa050beb
+size 327350
diff --git a/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_hangar_01.uasset b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_hangar_01.uasset
new file mode 100644
index 0000000000..a25d8869e0
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_hangar_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c0b2aeb178889428a44593575935d608a451b8a6cde799e7bd9de82bb741f055
+size 397194
diff --git a/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_ops_01.uasset b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_ops_01.uasset
new file mode 100644
index 0000000000..e20047da48
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Ambience/SW_amb_ops_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f2e06e65b17289889d845a1df083580be3759d5f35f2cc66b695cfb3cd4f9a5f
+size 373009
diff --git a/unreal/Verse/Content/Verse/Audio/DA_AudioCues.uasset b/unreal/Verse/Content/Verse/Audio/DA_AudioCues.uasset
new file mode 100644
index 0000000000..c05412c0aa
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/DA_AudioCues.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:454624cfa6c5f8e57c92d91b6fb31b6454fc9ee60dc1292ff255fb7f2fc9b3e2
+size 72139
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_drn_flight_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_drn_flight_01.uasset
new file mode 100644
index 0000000000..923ce68cb9
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_drn_flight_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dfad7f8be240131717ebb9d28ae7489cd52341551275b9c35715d8adbea88c07
+size 233516
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_drn_weld_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_drn_weld_01.uasset
new file mode 100644
index 0000000000..ad987fc641
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_drn_weld_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3b08528da04fc7f1ea2ee7799f4691a08e0bf7a411f31e4be58d70bccabc397f
+size 296594
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_catwalk_segment_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_catwalk_segment_01.uasset
new file mode 100644
index 0000000000..83c85ebdd4
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_catwalk_segment_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4c52f9a7e6b7980c24064e60973c6060f4e55f7251e2debd011e567bf8a63d0f
+size 138220
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_catwalk_segment_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_catwalk_segment_02.uasset
new file mode 100644
index 0000000000..45c203c211
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_catwalk_segment_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8555be891ce068b251813d68b1048e5082398e46828169896d9ab6dbbbc500f5
+size 144770
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_ceiling_panel_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_ceiling_panel_01.uasset
new file mode 100644
index 0000000000..0017715a34
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_ceiling_panel_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df38bbd35ef2a2b362a87824835b9082fba512a300f5f36f25223aaae535409d
+size 142994
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_ceiling_panel_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_ceiling_panel_02.uasset
new file mode 100644
index 0000000000..73df2bed2e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_ceiling_panel_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c537636fe3b48c9103a15ea5d0f924d9ce61c9a2b0fbf0601c2386095dd9f927
+size 137708
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_cladding_wall_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_cladding_wall_01.uasset
new file mode 100644
index 0000000000..e3b145883b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_cladding_wall_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1919b4c320f31f26e2df6e2c2bd451370c6024bc3eaa0cae672d58544d0b2644
+size 126103
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_cladding_wall_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_cladding_wall_02.uasset
new file mode 100644
index 0000000000..eb5aafa631
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_cladding_wall_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d943a0621785df8e33798d46b322932fc2b194ecdb03c88adf8427467d0e9be
+size 120354
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_container_wall_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_container_wall_01.uasset
new file mode 100644
index 0000000000..75eb4c2158
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_container_wall_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb611b8b7ba60515c5ca8f8c502debd844491da84d6a847774e2b32b99219037
+size 122285
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_container_wall_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_container_wall_02.uasset
new file mode 100644
index 0000000000..dc96398dea
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_container_wall_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:762c2e10985ba31521ecb2fcab194b0a8f1a84260388b8ff6a80f25e54579621
+size 120214
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_glass_pane_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_glass_pane_01.uasset
new file mode 100644
index 0000000000..6f9f9eebc5
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_glass_pane_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1447406ef5acc7a4d27c618558e186e2263cbacf548ab2897d15c778f0644706
+size 110903
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_glass_pane_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_glass_pane_02.uasset
new file mode 100644
index 0000000000..08333fe2e6
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_glass_pane_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d8073e040af0944a2cb5d39f334b0270c3aeead2a05b0b7b2444d8369aadb1e
+size 111003
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_hole_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_hole_01.uasset
new file mode 100644
index 0000000000..ed7d3419da
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_hole_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f323e5ee4113fee09b993ebae4ade81dee72db7704f32a0b71edf02d4f60c1e7
+size 25754
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_hole_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_hole_02.uasset
new file mode 100644
index 0000000000..d541940717
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_hole_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3a7c06af579489cd45db842000a8130330b0ac916904fe84032b5f0b177ae05b
+size 23798
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_dust_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_dust_01.uasset
new file mode 100644
index 0000000000..2c01662e9d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_dust_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8385ff459d19ea0921cf923b3ea19c3c799edc6705b2a493ee21b7e893707410
+size 82017
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_dust_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_dust_02.uasset
new file mode 100644
index 0000000000..482b468847
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_dust_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d92efee8534bd829e07a6f1364660848c6648600fa5425659c0fe0656532a10a
+size 75867
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_glass_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_glass_01.uasset
new file mode 100644
index 0000000000..87ec0fb90d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_glass_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:99190e72dd865859ebe3edeeaadc00c25a61e601bb2830edb9dc5abd3045acb2
+size 88423
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_glass_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_glass_02.uasset
new file mode 100644
index 0000000000..b5f64aaa48
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_glass_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c735ea2a8e9312c9c59e93bbc6454642b430a4f88a56ffbf3f22d27b9680199e
+size 81767
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_metal_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_metal_01.uasset
new file mode 100644
index 0000000000..c78712c9cd
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_metal_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e13ca5c1936629919d7b60533ad008d9bf35892fa3cf34fa4bfb067bb973a8a
+size 96322
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_metal_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_metal_02.uasset
new file mode 100644
index 0000000000..e3036058c2
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_settle_metal_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3094e4aab10ef6c133299b25539ef772f2b5ae2bb5be7bf824d9e34fd4282b9f
+size 94246
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_wall_panel_01.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_wall_panel_01.uasset
new file mode 100644
index 0000000000..3001fbefc5
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_wall_panel_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:760a91380b365f5e20a1f68acc370148b9f3aa5c6b270d85572181fc8f6f097a
+size 139092
diff --git a/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_wall_panel_02.uasset b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_wall_panel_02.uasset
new file mode 100644
index 0000000000..2ae4aecfb7
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Destruction/SW_dst_wall_panel_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:84c6b14c57bb12818ea4992281efa2cf01808acd59ab1cad8a031d1b6a98d54a
+size 136761
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_land_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_land_01.uasset
new file mode 100644
index 0000000000..608755bfca
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_land_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:428fe6628b76ff2792afbfac822257433c41c9f3f048bc5fbd3525239a2d3711
+size 32921
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_land_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_land_02.uasset
new file mode 100644
index 0000000000..97ab6f8433
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_land_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:72a634d5c80bfaa5660f8b8ffb046cca900b9f075ae23fa3cd4402d709f6623f
+size 32894
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_01.uasset
new file mode 100644
index 0000000000..f99150a362
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:42d83bcaf73b07cbba9e9e87bbd6c45b361ec586fa8f6471949e6fa6d24947d2
+size 24248
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_02.uasset
new file mode 100644
index 0000000000..6899e4156d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:89a107608fb8582575c2c90ee17b25a541564653f991f615829e855983a94567
+size 23777
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_03.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_03.uasset
new file mode 100644
index 0000000000..548d3308a0
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_lean_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a9433188a85b91f0a8b5da7267aa461364228abeeb74dec2853bd39db67cc68
+size 23956
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_mantle_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_mantle_01.uasset
new file mode 100644
index 0000000000..1cebc37a42
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_mantle_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1561b3832b3570af18495539b966056906d79c69cfebec0bf7d7cf7c7e1c1de8
+size 49339
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_mantle_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_mantle_02.uasset
new file mode 100644
index 0000000000..5f64ea9281
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_mantle_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9593638700b891cf83ba16e3187ca68e251891c298b7b4657d8f6b0ebf7cbc56
+size 49329
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_down_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_down_01.uasset
new file mode 100644
index 0000000000..e7b9dbcb4e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_down_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d8afcc73069b246eb27f570b3ceaf6d49bde35017cb7976f5ba17098101ac635
+size 55155
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_down_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_down_02.uasset
new file mode 100644
index 0000000000..fa33c5b13b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_down_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:14d19ffd1ab961f7fa00624854f98916100e2c385aa48c847f25108587a0e608
+size 55162
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_up_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_up_01.uasset
new file mode 100644
index 0000000000..bcc3da8d25
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_up_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de891e37a2c479d5663c3a5f53a5c0c4bc764b92fdcffcd5c5c6020f73af2a26
+size 56664
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_up_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_up_02.uasset
new file mode 100644
index 0000000000..1bb123089f
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_prone_up_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fdd4cede2401af1f72b655eb1792af0db2ba039e0dfe1d5f13770bbab6ddc09c
+size 57112
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_slide_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_slide_01.uasset
new file mode 100644
index 0000000000..5459e67c89
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_slide_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:81518fb2c179c4b585fbddb4207401fad8c44e35550527fbc51e5dfbbd7c3183
+size 70457
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_slide_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_slide_02.uasset
new file mode 100644
index 0000000000..f553ce689f
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fol_slide_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:326604de9c70933fa9b29511a9cb0514c8eec0f9fc19dc25ce5ac8ee74e58818
+size 70334
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_01.uasset
new file mode 100644
index 0000000000..04a9964445
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c4636be661ce14bb1cce716bc3c0eeb959cac627e0464b77f6b7ca04d670648
+size 11683
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_02.uasset
new file mode 100644
index 0000000000..b27a3c3644
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6710f79bc792910214819e902f2109be9a9a99fd05fa1471e10173ba82f4e03a
+size 11496
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_03.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_03.uasset
new file mode 100644
index 0000000000..bed8309f11
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e26e6b6a37d3ea98e6cf011a9a256a34e7516c950d1cd1aa39a96695abd4473e
+size 11555
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_04.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_04.uasset
new file mode 100644
index 0000000000..9fff0d3f91
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_concrete_04.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9726f8e943491d0a0c2281164f2106246e23c0ca236aa91a485b9b6c143f725b
+size 11982
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_01.uasset
new file mode 100644
index 0000000000..026eb8d027
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9e5d982c91874ce51ff928fd08065d8b715744a2c4aa81839256cdc8aab6bf58
+size 15795
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_02.uasset
new file mode 100644
index 0000000000..61c2ef78b5
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cca9f814bd1363d16cfd37d688cc2020bbd6e19698c42ce4e15ee60bb2c7923f
+size 16381
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_03.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_03.uasset
new file mode 100644
index 0000000000..a511342a26
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e610b135af14615dd26b4277e5926b5c673d67ba57f44a78eb3e08ae4a7ceae
+size 16705
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_04.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_04.uasset
new file mode 100644
index 0000000000..a0e4e9c577
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_grating_04.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:19bf4ec6eabccac699630a00e16b1b3f46003b5221a19ca79262df00925a876e
+size 15616
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_01.uasset
new file mode 100644
index 0000000000..be95f27601
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e53ce23b93b4e5145a9115e95d186cfed17ce01be254f8aa5cc76d292fab83fa
+size 12551
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_02.uasset
new file mode 100644
index 0000000000..ac72b34e31
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a7ca62268e2ec8104522b43018df3b85060295964e369c02c8048f154dccf5ad
+size 12799
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_03.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_03.uasset
new file mode 100644
index 0000000000..04c85758da
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c7b6b91a8ffb7b1e3fe514c3b5aac33c6ace5121d651ecbc3200835579e433e5
+size 13264
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_04.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_04.uasset
new file mode 100644
index 0000000000..7a59f2a081
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_04.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:036f06e2bd176b9f1e80db2f7c279d3f745b7aaccdce1705e7b1f71c54e25761
+size 12474
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_01.uasset
new file mode 100644
index 0000000000..6c7bae6ee1
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:37ae430cc07ac4d846882d3e0be20494887f3b45676d3693726aef234b1bd1c2
+size 14980
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_02.uasset
new file mode 100644
index 0000000000..7166c825e3
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1d4296efa1bc37f9e0e3b70f863a634c9773dad0943e0b2437bc76325df0f5b5
+size 15244
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_03.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_03.uasset
new file mode 100644
index 0000000000..a6f0babff9
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b12380d96fef261e9dca23427162b6e3b25d2ef3af1ae74c0e93ada35e814c76
+size 15613
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_04.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_04.uasset
new file mode 100644
index 0000000000..5119f3053d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_04.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:41a8137a3b954ec3d019fc958ee428c9bef970ac66160178365dd3241c62234b
+size 15619
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_05.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_05.uasset
new file mode 100644
index 0000000000..8749e83434
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_05.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6888fb82b856ca5b929a8fc864707e4d715ce119cd2be4484b9aedb6d22f67e4
+size 14629
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_06.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_06.uasset
new file mode 100644
index 0000000000..70b38bf00c
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_metal_boots_06.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a0efe3bc169a371e363badcb179f7944507228f8fbaf5d5f1adcd8821ab7a85
+size 15053
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_01.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_01.uasset
new file mode 100644
index 0000000000..edafb2c0e0
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e0d2ef3ac3e6155e3f844a426378dbf480eb86a00ffdef024f616c6336157cd6
+size 12179
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_02.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_02.uasset
new file mode 100644
index 0000000000..d61ddfdef5
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d580c0c42270f8fc401e25f578894db5c14b7a926ee3c2c0f92850e5ef096b0a
+size 11724
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_03.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_03.uasset
new file mode 100644
index 0000000000..288f998a7f
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:24c87d595230abf6c93f4a54d4ba49e885b39b61d0fb674ba58f5c1f23cd803d
+size 12238
diff --git a/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_04.uasset b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_04.uasset
new file mode 100644
index 0000000000..234e81826b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Foley/SW_fs_rubble_04.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fab00d0d77b71c74cdf0d869a42cbb1ef7a8b6064049a12d24038b4971897c95
+size 12886
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_detonate_01.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_detonate_01.uasset
new file mode 100644
index 0000000000..76661e1a9d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_detonate_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e4f8032fd8b2df7d539127e733400ca852e74ffc73f3657fcee160e9b2ab0e10
+size 197485
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_detonate_02.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_detonate_02.uasset
new file mode 100644
index 0000000000..8745cdc9df
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_detonate_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:09c9605e36b92b416e3f9446ea0100520afc98d3841614133421862695fa11f1
+size 196576
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_plant_01.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_plant_01.uasset
new file mode 100644
index 0000000000..46ccb1d943
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_plant_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:89967d73cd3a3cc1f59c82dd6824c4d4b65bccbc447ccaeb80b993c904f9f2d9
+size 17538
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_plant_02.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_plant_02.uasset
new file mode 100644
index 0000000000..766ac14ffe
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_breach_plant_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9331ac64e2bd36706416e64a3f2f543a6a74fd7cb1d582912d3b9e096d0288f7
+size 20482
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_deploy_01.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_deploy_01.uasset
new file mode 100644
index 0000000000..e231f748f3
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_deploy_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:81a4d900a75177561f7541df69e7b6d122474d8f13cfcf9af9f00cfcda44a2f7
+size 39955
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_deploy_02.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_deploy_02.uasset
new file mode 100644
index 0000000000..b5ef7f2bc1
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_deploy_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5dbd3f729428481cf10b7b55ae68b65ca92c34361551008eacb6d3edd75c05ca
+size 39330
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_destroyed_01.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_destroyed_01.uasset
new file mode 100644
index 0000000000..6387e5393a
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_destroyed_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b81b1da5826dbab3b7a281b9f21bc2f0b721715b7f25b8fc59f763dd87b208ef
+size 91576
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_destroyed_02.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_destroyed_02.uasset
new file mode 100644
index 0000000000..02c451ab53
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_destroyed_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c30ae74cbe7cac242080eb0a9ec7ab19b490bd623bc96297b99446944101759b
+size 90848
diff --git a/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_hum_01.uasset b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_hum_01.uasset
new file mode 100644
index 0000000000..421ffd9175
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Gadgets/SW_gad_bulwark_hum_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:af9a2f17bc0d96ed5b7a536a2519bd8dda853ee269d4a915335e7c7979f79ce3
+size 187145
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_01.uasset
new file mode 100644
index 0000000000..34beb4be51
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:58eeb9880b704481ba426fb13620ed25d994ddba026adebd638cfa2b3e9c73c7
+size 22761
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_02.uasset
new file mode 100644
index 0000000000..ffc1133d25
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:21f3eebc31560b12a8f4f08c52f4bf6730495b21912c36bea11ac5ab414813aa
+size 22235
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_03.uasset
new file mode 100644
index 0000000000..3a168bb40c
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_bolt_flyby_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3151e33f14ca4f1c3ca56ec1b67889f018bfb3d81ef4ed50b9d120be1f433e41
+size 23618
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_01.uasset
new file mode 100644
index 0000000000..adc10e7185
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c4ff03e25d44c1af74f29bdc9d0da6cd97b73c76cf63d702f23095a21c284abd
+size 55122
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_02.uasset
new file mode 100644
index 0000000000..7feb7afe60
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd12ce6019e8485e92d06a712d85bf13884da5ec3fb85c62352235a00e5a8d04
+size 54922
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_03.uasset
new file mode 100644
index 0000000000..67783b253b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_armor_steel_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d09061094444ffae606d8430ec58f7157820fb89c79d1d903ae94ced87af93e9
+size 55890
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_01.uasset
new file mode 100644
index 0000000000..67f3b22a43
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:555bf1bc1c8fff2afe3276ee74d1baed8fad5213594049b229bcfb624f893b09
+size 24709
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_02.uasset
new file mode 100644
index 0000000000..5c97caa01e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:53d102f086fd1af52d39075ba38894f3631cc87c74ba300d329f252510363788
+size 25381
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_03.uasset
new file mode 100644
index 0000000000..b4a2350acd
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_catwalk_grating_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c76319a8e95c6e763ee8fcdbb5706fa31b09bf430b118a8c2c157c9b79aeacb6
+size 26105
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_01.uasset
new file mode 100644
index 0000000000..6eed84ad75
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:42b6e3140638b5a8a0cbe7bfca77e7d11a3b9c6beca2423106adf19995b8745e
+size 27667
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_02.uasset
new file mode 100644
index 0000000000..e4f8be5414
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:568888c4e45897e85b91cb9daf5ead212553951d05541dd4e5c2d31d1d217292
+size 27512
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_03.uasset
new file mode 100644
index 0000000000..a39eb9577e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_ceiling_panel_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e02271e4b26e431b81aef9b8d07c323a641e5bafb102030d68d8806c87e37ad
+size 29120
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_01.uasset
new file mode 100644
index 0000000000..760199350d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:00d6c14b551acc6a28b5f248ed95109b9215bada38e5d70ca1614a23d85601ad
+size 26964
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_02.uasset
new file mode 100644
index 0000000000..1e9f399352
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:918aaef371c7581bedbc485c46040f33bd2bfc96efd05cae83a502ad059ab94c
+size 26899
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_03.uasset
new file mode 100644
index 0000000000..a2cf45d5dc
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_cladding_panel_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f78a903f091e48aace1d7d1dc83bbda2d50afddf48439ef6d7f1186f5a824d14
+size 27397
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_01.uasset
new file mode 100644
index 0000000000..a4f3a4eac0
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f8950da51b007396ed2a7d145b45a56925a266517e4c1b563f0735fe7caf81fa
+size 27141
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_02.uasset
new file mode 100644
index 0000000000..29075f2cde
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1dba9b2463c3503107f1a73a4c65df3b0f9bf6d15f70b53a6a4735468d2abd17
+size 24726
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_03.uasset
new file mode 100644
index 0000000000..92b4a05bb9
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_concrete_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ec6a1c3e15889ec8dd974d03690c870330e6a8c2d6b4cbbff6d66c8e07dcece
+size 28577
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_01.uasset
new file mode 100644
index 0000000000..58854013b4
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b7007e5912d783401f4c6712db47640a41424c06979aec2cadc568cdd767ec6a
+size 38286
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_02.uasset
new file mode 100644
index 0000000000..6421395189
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:00904cd02d2c1d9712bd920a442d4b69884a0df2edad46c73d54c4a3c4487ea0
+size 38200
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_03.uasset
new file mode 100644
index 0000000000..7d6110dcd3
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_container_wall_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d2b44bc8b21c40f24ca5358e97f93d8fbd3254494d9fe4803338217a27e6efc
+size 36198
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_01.uasset
new file mode 100644
index 0000000000..f575b78357
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf19fb5e12781b262224244ed118cbd3c423e564447c3467513668052bb99ab1
+size 22425
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_02.uasset
new file mode 100644
index 0000000000..d7cd95ed54
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cc822834a54dc6a9d945a13429432de1d42abf61d080326ace41d45baa66ff60
+size 20696
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_03.uasset
new file mode 100644
index 0000000000..a0c8023cb0
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_flesh_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:750e3264bf086d4f4842b023d73abf141e577d1cc58fe1c3326f9c2d139c6912
+size 20314
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_01.uasset
new file mode 100644
index 0000000000..895edee46d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:251d8ac69a5bd1ce7568b5ab19ebd50e3c384ff228b63a24a7cf747dc4b86aab
+size 44782
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_02.uasset
new file mode 100644
index 0000000000..fb71d89665
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aa75b1490fd281ac4d33e8797ca12f730520e6948ba2953327b10d2dfff6ddff
+size 44915
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_03.uasset
new file mode 100644
index 0000000000..f86264308b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_glass_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f84233caa2678685310da67e05ba91691f7cf9549da9fa0cd2f712b6931a7c1e
+size 45757
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_hurt_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_hurt_01.uasset
new file mode 100644
index 0000000000..7dd9e6c9ac
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_hurt_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ff8459eef89726b45600dcd62e67788f150f8dc7d6865c7838e7d63d09c90825
+size 19677
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_hurt_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_hurt_02.uasset
new file mode 100644
index 0000000000..5f0178e42e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_hurt_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b116eaed8f57c2a3970d351a1b7e81e13bf2066a2f22c69f503ccde672718f99
+size 19882
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_penetration_exit_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_penetration_exit_01.uasset
new file mode 100644
index 0000000000..6dfccf80f8
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_penetration_exit_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:747d04b62415883c8fb24fd46f623bcfe9276d2dd6d8344b6b137d54a070411d
+size 32360
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_penetration_exit_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_penetration_exit_02.uasset
new file mode 100644
index 0000000000..ae412395bd
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_penetration_exit_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:34c2cce5412a935112b74a0e821448e01d6849b7fa68383730606a88bedf3821
+size 30593
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_01.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_01.uasset
new file mode 100644
index 0000000000..d468abdae6
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:87cb58b79dd2f9369267270d8b006e8e06803f787a5121a2b174418d0e30a167
+size 28670
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_02.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_02.uasset
new file mode 100644
index 0000000000..7cec65b297
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:26a53d2bab5b6f012232abef83295f3266cda9df1aace0e0fd324936a3167465
+size 27379
diff --git a/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_03.uasset b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_03.uasset
new file mode 100644
index 0000000000..879a0285e8
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Impacts/SW_imp_sheet_metal_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf34062c29f97bc51b1c1ed5683874b6f915b44b060c7480d6d5dfbd86250ec5
+size 28921
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_knife_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_knife_01.uasset
new file mode 100644
index 0000000000..45af82fa24
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_knife_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e9f7d764437d827f4466cfcd3fe9dc8b5edb52029e3c16f83894741ed2927a23
+size 46812
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_knife_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_knife_02.uasset
new file mode 100644
index 0000000000..ff30bb8c50
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_knife_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1a0c1b485787b3b22e1ddeee204eec45a8aef4caacfb0931ae0e25f8a0ef852d
+size 48653
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_pistol_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_pistol_01.uasset
new file mode 100644
index 0000000000..4d454d0885
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_pistol_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:918504da5c8d6fc3a60beaf87c0112358ae53c3cc6ac4e6d24b76b709f273416
+size 34956
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_pistol_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_pistol_02.uasset
new file mode 100644
index 0000000000..58adefc852
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_pistol_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3210978888678ae4397c9ee6185e6799bff5d7503faeb032544801a8d9898590
+size 33741
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_rifle_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_rifle_01.uasset
new file mode 100644
index 0000000000..a83c457c6b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_rifle_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5b492a307e617d5bb9d7b70416b1a71768900b95a50da6a2330239a115e71a84
+size 33729
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_rifle_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_rifle_02.uasset
new file mode 100644
index 0000000000..5ae4abe1b5
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_eqp_rifle_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6ae90d534b3ad6ea824504d09bef03c0171f8a5e812a62ed6232dde0612e2cd1
+size 35466
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_kill_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_kill_01.uasset
new file mode 100644
index 0000000000..7c1b7dcf9a
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_kill_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7682413f7162d2e5dd6a88962459427212e9589e4ff9ee2bd0f622cc24590e16
+size 53102
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_kill_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_kill_02.uasset
new file mode 100644
index 0000000000..f42b32a5ed
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_kill_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:20b342bfcc6d2a599ab2122fffcc00fb9b04a307c5e8236e9c927a3061c22d31
+size 54571
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_struggle_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_struggle_01.uasset
new file mode 100644
index 0000000000..1bfb5ddc4e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_struggle_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e683b4997429422ef847b897706b7254b6db759801ca19dc231521867c1ba81
+size 94037
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_struggle_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_struggle_02.uasset
new file mode 100644
index 0000000000..290272bdab
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_struggle_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a705ef5583e5a5bad221d36ede355a481e0c8f5b96faa0ba9f7c6a3d134826c1
+size 88631
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_takedown_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_takedown_01.uasset
new file mode 100644
index 0000000000..5962b3e5c5
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_takedown_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:473051f879f4614b2e284532b03defdd85ff69497b30ae601cf81c06eebef426
+size 56413
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_takedown_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_takedown_02.uasset
new file mode 100644
index 0000000000..18bbd8351e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_fin_takedown_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98f2ed1fb231365fdee17b700243f21f776801f5e077abeb5f48b5db21903623
+size 54548
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_01.uasset
new file mode 100644
index 0000000000..7e402636d8
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:006b65ec83bc8956aa2e9e69db94e0c221b958860c594d1a0170432651901747
+size 26115
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_02.uasset
new file mode 100644
index 0000000000..d0ac7fb864
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f95132c1e3751255323f9dd725ff2ff72c704f270c0eb0c98459a2ecad6a08c9
+size 26254
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_03.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_03.uasset
new file mode 100644
index 0000000000..02bb16f93d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_hit_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1cf97c246e366d6d1060b9f2cf5d68632fc8c49a54923c1c4125102714566a97
+size 25919
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_01.uasset
new file mode 100644
index 0000000000..e7fe063179
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b0a04db401ae9ae23bba7e7990d6898de3e57c41409a38b2aa9efd5c2e0bdc17
+size 20507
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_02.uasset
new file mode 100644
index 0000000000..4de23f3909
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a171ca6607033b7dfe772017d756ea37c7a557a831d7f610c42324bad9c6713a
+size 19813
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_03.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_03.uasset
new file mode 100644
index 0000000000..944e709603
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_mel_knife_swing_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4838247c45cdb8a818bf68915fbc6346bc3d97215d97b840c59de9fcfd77c8da
+size 20314
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_empty_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_empty_01.uasset
new file mode 100644
index 0000000000..ec8a3eabeb
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_empty_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ac381dc95375274e49b41876af4ca8806df880381885efb545ede8e83d3fb305
+size 62210
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_empty_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_empty_02.uasset
new file mode 100644
index 0000000000..3695fd18ad
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_empty_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:64a5cd74c07fa3c69a583b910d917dcf2dd68af661c2a23f721bd5325426277e
+size 65081
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_tactical_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_tactical_01.uasset
new file mode 100644
index 0000000000..6740fb62f7
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_tactical_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ca0ad94e97d107207e081a447b02f75558e7b3c9a7e26472fa7418ca45045e0b
+size 51220
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_tactical_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_tactical_02.uasset
new file mode 100644
index 0000000000..7dd15b06d0
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_pistol_tactical_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2aaa081c63437c81a522d287262ff5f9ad1010a7b902c23324a91f34bdc27ec2
+size 54612
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_empty_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_empty_01.uasset
new file mode 100644
index 0000000000..9b3d7dd9a9
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_empty_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:adf64502bfe809e6270ff44290a97a1eaeafdbcd0206f5c51a73fba7a959fde3
+size 78297
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_empty_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_empty_02.uasset
new file mode 100644
index 0000000000..cb5287e621
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_empty_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f6cf8212f683111545e31d0f6294920ea46bab23738c1e5575ed68bca9be48fa
+size 80938
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_tactical_01.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_tactical_01.uasset
new file mode 100644
index 0000000000..1d8d1a6227
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_tactical_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d74f752757caf47f4b4d1062354fead2202c8253cdced5344361cb625609eb8f
+size 57820
diff --git a/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_tactical_02.uasset b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_tactical_02.uasset
new file mode 100644
index 0000000000..53e9910810
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Reloads/SW_rld_rifle_tactical_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ae4108137600942f743ea91d9f7eacfdf5b4ef6eddbf6e01c286deeac5404af
+size 56615
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_lift_door_close_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_lift_door_close_01.uasset
new file mode 100644
index 0000000000..40767054da
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_lift_door_close_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6ebcdf9c2247655465a4ed96fa0ecb659d63cec88b95c28784d62ead2f5ff526
+size 79690
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_lift_door_open_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_lift_door_open_01.uasset
new file mode 100644
index 0000000000..53e50ab9e8
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_lift_door_open_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f14f24c6d5ac10ee1cb7c925dec0400f6e7be0062e79cb9a8c509e0e3802fd29
+size 89760
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_lift_ride_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_lift_ride_01.uasset
new file mode 100644
index 0000000000..769efb4efe
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_lift_ride_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c61bc62486291babe89ccdab13737e213fe6816060bc507a869338c2a4588b43
+size 327767
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_back_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_back_01.uasset
new file mode 100644
index 0000000000..d3907ec134
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_back_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:92eaefaa7c12f275756bc446ef598e9ceb49db8f024f204437a52e856760281d
+size 17417
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_click_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_click_01.uasset
new file mode 100644
index 0000000000..d3f739e013
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_click_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23291c91f3c034d13e48bd65703ea3e1bde3ebce737fd6cfddf15a3967c285f9
+size 13317
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_confirm_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_confirm_01.uasset
new file mode 100644
index 0000000000..d6715efcc8
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_confirm_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bcd1957b8e8099b6dfdedf7fdf67b794cf85894465c8f724a6deb857ea2dcbf9
+size 18934
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_hover_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_hover_01.uasset
new file mode 100644
index 0000000000..dd1e825bd7
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_hover_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2773e89e505da2188b51d8f51514459bab9b47d4bba57c8d0dd586af90e56b15
+size 4771
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_hover_02.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_hover_02.uasset
new file mode 100644
index 0000000000..a26008bf3f
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_hover_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40dace329e3adeb30c840bd80bc18fd57a0475d2f95ab64b5a6216cce652d3a8
+size 4834
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_level_bell_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_level_bell_01.uasset
new file mode 100644
index 0000000000..5a85273e5b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_level_bell_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ff2eb8342e11d942bd365a79787f5eabfbc209569bb04b4ace6b40c4fed75fbe
+size 112766
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_panel_close_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_panel_close_01.uasset
new file mode 100644
index 0000000000..69aeae5384
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_panel_close_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fd14bf244c95c6978ac2af76be5d09687e9edd6d1b4e6ff7d0d05409d95488c5
+size 14134
diff --git a/unreal/Verse/Content/Verse/Audio/UI/SW_ui_panel_open_01.uasset b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_panel_open_01.uasset
new file mode 100644
index 0000000000..5e9c4273b5
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/UI/SW_ui_panel_open_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8bf202854d53cb3a14e0b53fadf2ea648f96b031f8f1552b2e749555cec471c3
+size 12053
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_01.uasset
new file mode 100644
index 0000000000..fbb298a1fe
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d702fedcd45faad576e622dc08e370414e92549bccea6a13038d764d950d98a
+size 25692
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_02.uasset
new file mode 100644
index 0000000000..5e0667266a
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e9f6527de04193a7272034bc9ad9c0312ca56e76439dde1017b07bf08bd95520
+size 25610
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_03.uasset
new file mode 100644
index 0000000000..ca0972fcb7
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_body_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9dabbbab92e0d5be7c6880177497b0be5070ac5bf7601c87aed70dc418deb2bc
+size 25642
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_01.uasset
new file mode 100644
index 0000000000..c2554cb3d8
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:65d47cd507534294d482b136e0fc385a6230d7ec58099ae9505e3452a1c4d462
+size 15447
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_02.uasset
new file mode 100644
index 0000000000..b75473511f
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7eb2f306ac888cee61ddbe8f43b19809afd64c2d206e07006c1cfb4897b7d431
+size 13536
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_03.uasset
new file mode 100644
index 0000000000..f91490843f
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_fp_mech_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:86cb82f4e06d240e94bce4e9f06c198f4c43d7779fa4a8ea33eb0465f9c971c2
+size 13510
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_01.uasset
new file mode 100644
index 0000000000..fd8527a5e6
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d30d679364d053d370bdd718d4eccfcd9826b1a6c748422cf565e548ed5d452e
+size 47110
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_02.uasset
new file mode 100644
index 0000000000..9510975860
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7ffc5d2df8e3d69f68304ca790d790615cbc5d641aee97dacfebcd93448703c7
+size 47435
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_03.uasset
new file mode 100644
index 0000000000..81c50ad9fb
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tail_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:169a0c57a7dd6ee58d6ce3cc6110267a5af8b6986a6cf34e56cea8f2165feda0
+size 43598
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_01.uasset
new file mode 100644
index 0000000000..ef3a0e5afd
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:018e98d59254b7d00a6e6c08c752207a3a7371bceab28d2020b6d8ca73d82bcc
+size 51264
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_02.uasset
new file mode 100644
index 0000000000..b3a00e4f4c
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c3de3ff4a391d3b9a39bdc8ffc2eeae39053159697de7d64d6d2b1a9441540bf
+size 45691
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_03.uasset
new file mode 100644
index 0000000000..fac1656c6d
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_far_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e76577d6bb4bbdc2f2c181e4ebc67185db39cb423da3b098f91fee402821c227
+size 49989
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_01.uasset
new file mode 100644
index 0000000000..bcd07a25af
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a8d74dc4f67ed4aeff9dc399845505ca79ee7fa769a775c93cce3e5877abbe3f
+size 35223
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_02.uasset
new file mode 100644
index 0000000000..c98af6235b
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3263815c9486ffcde8e9684b672b7eadb3c118a6580b6b27a52b8a8acb4a620a
+size 35962
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_03.uasset
new file mode 100644
index 0000000000..d68612afbe
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_near_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2d1e9ee9ae35d9a405312f43c4dc54fe152480d067c34d979b14d0bf178ac6f0
+size 33357
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_tail_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_tail_01.uasset
new file mode 100644
index 0000000000..f9865b4ee3
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_tail_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f835a277fa681d26a992af31fd757ea6542f125333a514b24cc2c636a776515d
+size 63370
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_tail_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_tail_02.uasset
new file mode 100644
index 0000000000..a2901a38f8
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_pistol_tp_tail_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:61e804420e90c1faaf6094d951ee4bac64e88221d7a2110a95e3e989510a0f5d
+size 64073
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_01.uasset
new file mode 100644
index 0000000000..286193513c
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1f8e699d4075e6f56c316afbd6e7ad588ddc346e2dcc37cf02a29df79e15c96b
+size 23539
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_02.uasset
new file mode 100644
index 0000000000..2aa55a8f57
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f5c80719f7bdc2372897925889bfaa96746a417bac573b5a000009fd302bb23
+size 24544
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_03.uasset
new file mode 100644
index 0000000000..93a5499a22
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_body_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8526016737e42ade5086c465c60daf84fecb66a9ab34461cf2185951ed209958
+size 23440
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_01.uasset
new file mode 100644
index 0000000000..202bd0b4c9
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a10e0ebfdc8fb23bea583a95942dfd8fd531c073c716763c3def5ae3004dcdb
+size 16086
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_02.uasset
new file mode 100644
index 0000000000..ca0bc543e2
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9cc2bc9d4d39b539e7810554e204acf7f702b60b52e26d2b688cbc646c14d077
+size 14569
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_03.uasset
new file mode 100644
index 0000000000..56bd37558a
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_fp_mech_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:39cc8acc857b011c2517022850bffb34768f70ae2c275f69a5d8bfaed06df903
+size 15072
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_01.uasset
new file mode 100644
index 0000000000..ffc14b01a1
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b71cf8e5f974ef01c4da6fdd821a4f85bf5e147dd1c28c6f25145c8eb8e4169
+size 59543
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_02.uasset
new file mode 100644
index 0000000000..b3dd6100e1
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fd397899a8ea0869097ca6aed8aee404b7c8745020179ea9fa9139f9dfc5ad89
+size 55825
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_03.uasset
new file mode 100644
index 0000000000..cb99368334
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tail_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e95f57ffdbe86d1dacc50982bab63995347dc0beab2bff12026f1c25593e586
+size 54675
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_01.uasset
new file mode 100644
index 0000000000..53f4393b46
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9d7183b9160652931ad9636bed3458a234ba43d5db7f1ef81f0cbe17c8eb267f
+size 59861
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_02.uasset
new file mode 100644
index 0000000000..c23f7b83b6
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27afcef42348fc2802d2c40be09a18b67f2e0f8bbbd5ba295651f66b79d5f354
+size 61974
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_03.uasset
new file mode 100644
index 0000000000..bbe2625586
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_far_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:31d773f2d19f85d645e3eb1f3fff8a58c48930ebd40f784a28bd4d72c60e81b8
+size 63428
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_01.uasset
new file mode 100644
index 0000000000..c398a1cf65
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a9ad2ef0e237fa98de12e60a5b0440271a17c12020b31b1b8291d026676b34d
+size 32832
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_02.uasset
new file mode 100644
index 0000000000..9eb31f81a4
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1721ddc803e92c54c5c267b7ac73fd9ef3a61692815c2bf7ca7708366c1f26d3
+size 34655
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_03.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_03.uasset
new file mode 100644
index 0000000000..9affda46e4
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_near_03.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2f1a7564d64ffa913b6910fdac8697ac2d3d229f12a0284af8e65d71d2a2169c
+size 34757
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_tail_01.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_tail_01.uasset
new file mode 100644
index 0000000000..30727ecd6e
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_tail_01.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:895485a1649aed13bf294f0deea8e806f0f546dc4b0646a402e9c0d5af663cc1
+size 62680
diff --git a/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_tail_02.uasset b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_tail_02.uasset
new file mode 100644
index 0000000000..0759288c4c
--- /dev/null
+++ b/unreal/Verse/Content/Verse/Audio/Weapons/SW_wpn_rifle_tp_tail_02.uasset
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9f41216df52d86b64f5194273264aaca19f2752b1a4b1285719d757bcd0b3168
+size 64254
diff --git a/unreal/Verse/Data/audio/cues.json b/unreal/Verse/Data/audio/cues.json
new file mode 100644
index 0000000000..5ae8e3c1e2
--- /dev/null
+++ b/unreal/Verse/Data/audio/cues.json
@@ -0,0 +1,2151 @@
+{
+ "schema": "verse.audio.cues/1",
+ "owner": "WP19",
+ "sample_rate": 48000,
+ "content_root": "/Game/Verse/Audio",
+ "weapon_profiles": {
+ "pistol": "pistol",
+ "rifle": "rifle"
+ },
+ "default_weapon_profile": "rifle",
+ "cues": [
+ {
+ "id": "wpn_rifle_fp_mech",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_mech",
+ "params": {
+ "weapon": "rifle"
+ },
+ "variants": 3,
+ "seed": 1100,
+ "peak_db": -6,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_rifle_fp_body",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_body",
+ "params": {
+ "weapon": "rifle"
+ },
+ "variants": 3,
+ "seed": 1200,
+ "peak_db": -1,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_rifle_tail",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tail",
+ "params": {
+ "weapon": "rifle"
+ },
+ "variants": 3,
+ "seed": 1300,
+ "peak_db": -9,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 8,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_rifle_tp_near",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tp_near",
+ "params": {
+ "weapon": "rifle"
+ },
+ "variants": 3,
+ "seed": 1400,
+ "peak_db": -1,
+ "space": "3d",
+ "noise": "Noise.Shot",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_rifle_tp_far",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tp_far",
+ "params": {
+ "weapon": "rifle"
+ },
+ "variants": 3,
+ "seed": 1500,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Shot",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 9,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_rifle_tp_tail",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tail",
+ "params": {
+ "weapon": "rifle",
+ "decay_s": 2.0,
+ "bright": 1800
+ },
+ "variants": 2,
+ "seed": 1600,
+ "peak_db": -9,
+ "space": "3d",
+ "noise": "Noise.Shot",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_pistol_fp_mech",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_mech",
+ "params": {
+ "weapon": "pistol"
+ },
+ "variants": 3,
+ "seed": 1700,
+ "peak_db": -6,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_pistol_fp_body",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_body",
+ "params": {
+ "weapon": "pistol"
+ },
+ "variants": 3,
+ "seed": 1800,
+ "peak_db": -1,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_pistol_tail",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tail",
+ "params": {
+ "weapon": "pistol"
+ },
+ "variants": 3,
+ "seed": 1900,
+ "peak_db": -9,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 8,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_pistol_tp_near",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tp_near",
+ "params": {
+ "weapon": "pistol"
+ },
+ "variants": 3,
+ "seed": 2000,
+ "peak_db": -1,
+ "space": "3d",
+ "noise": "Noise.Shot",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_pistol_tp_far",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tp_far",
+ "params": {
+ "weapon": "pistol"
+ },
+ "variants": 3,
+ "seed": 2100,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Shot",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 9,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "wpn_pistol_tp_tail",
+ "group": "Weapons",
+ "bus": "Weapons",
+ "recipe": "weapon_tail",
+ "params": {
+ "weapon": "pistol",
+ "decay_s": 2.0,
+ "bright": 1800
+ },
+ "variants": 2,
+ "seed": 2200,
+ "peak_db": -9,
+ "space": "3d",
+ "noise": "Noise.Shot",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "bolt_flyby",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "bolt_flyby",
+ "params": {},
+ "variants": 3,
+ "seed": 2300,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "",
+ "range_m": 6,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 9,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_sheet_metal",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "sheet_metal"
+ },
+ "variants": 3,
+ "seed": 2400,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_container_wall",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "container_wall"
+ },
+ "variants": 3,
+ "seed": 2500,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_glass",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "glass"
+ },
+ "variants": 3,
+ "seed": 2600,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_cladding_panel",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "cladding_panel"
+ },
+ "variants": 3,
+ "seed": 2700,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_catwalk_grating",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "catwalk_grating"
+ },
+ "variants": 3,
+ "seed": 2800,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_ceiling_panel",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "ceiling_panel"
+ },
+ "variants": 3,
+ "seed": 2900,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_concrete",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "concrete"
+ },
+ "variants": 3,
+ "seed": 3000,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_armor_steel",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact",
+ "params": {
+ "material": "armor_steel"
+ },
+ "variants": 3,
+ "seed": 3100,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_flesh",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "cc0_layer",
+ "params": {
+ "synth": "impact_flesh",
+ "synth_gain": 0.8
+ },
+ "variants": 3,
+ "seed": 3200,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 8,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "cc0:FS536741,KI",
+ "files": [
+ "dodaios/ui/web/frontend/public/verse/audio/body_hit_1.ogg",
+ "dodaios/ui/web/frontend/public/verse/audio/body_hit_2.ogg",
+ "dodaios/ui/web/frontend/public/verse/audio/body_hit_3.ogg"
+ ]
+ },
+ {
+ "id": "imp_penetration_exit",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "penetration_exit",
+ "params": {},
+ "variants": 2,
+ "seed": 3300,
+ "peak_db": -5,
+ "space": "3d",
+ "noise": "Noise.Impact",
+ "range_m": 60,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "imp_hurt",
+ "group": "Impacts",
+ "bus": "Impacts",
+ "recipe": "impact_flesh",
+ "params": {},
+ "variants": 2,
+ "seed": 3400,
+ "peak_db": -2,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fs_metal",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "footstep",
+ "params": {
+ "surface": "metal"
+ },
+ "variants": 4,
+ "seed": 3500,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Footstep.Run",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 5,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fs_grating",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "footstep",
+ "params": {
+ "surface": "grating"
+ },
+ "variants": 4,
+ "seed": 3600,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Footstep.Run",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 5,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fs_concrete",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "footstep",
+ "params": {
+ "surface": "concrete"
+ },
+ "variants": 4,
+ "seed": 3700,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Footstep.Run",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 5,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fs_rubble",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "footstep",
+ "params": {
+ "surface": "rubble"
+ },
+ "variants": 4,
+ "seed": 3800,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Footstep.Run",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 5,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fs_metal_boots",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "cc0",
+ "params": {},
+ "variants": 6,
+ "seed": 3900,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Footstep.Run",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 5,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "cc0:FS749711",
+ "files": [
+ "dodaios/ui/web/frontend/public/verse/audio/step_1.ogg",
+ "dodaios/ui/web/frontend/public/verse/audio/step_2.ogg",
+ "dodaios/ui/web/frontend/public/verse/audio/step_3.ogg",
+ "dodaios/ui/web/frontend/public/verse/audio/step_4.ogg",
+ "dodaios/ui/web/frontend/public/verse/audio/step_5.ogg",
+ "dodaios/ui/web/frontend/public/verse/audio/step_6.ogg"
+ ]
+ },
+ {
+ "id": "fol_slide",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "slide",
+ "params": {},
+ "variants": 2,
+ "seed": 4000,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Move.Slide",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fol_land",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "land",
+ "params": {},
+ "variants": 2,
+ "seed": 4100,
+ "peak_db": -4,
+ "space": "3d",
+ "noise": "Noise.Move.Land",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fol_mantle",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "mantle",
+ "params": {},
+ "variants": 2,
+ "seed": 4200,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Move.Mantle",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 6,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fol_lean",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "lean",
+ "params": {},
+ "variants": 3,
+ "seed": 4300,
+ "peak_db": -12,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 3,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fol_prone_down",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "prone",
+ "params": {
+ "down": true
+ },
+ "variants": 2,
+ "seed": 4400,
+ "peak_db": -8,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 3,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fol_prone_up",
+ "group": "Foley",
+ "bus": "Foley",
+ "recipe": "prone",
+ "params": {
+ "down": false
+ },
+ "variants": 2,
+ "seed": 4500,
+ "peak_db": -10,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 3,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "rld_rifle_tactical",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "reload",
+ "params": {
+ "weapon": "rifle",
+ "empty": false
+ },
+ "variants": 2,
+ "seed": 4600,
+ "peak_db": -5,
+ "space": "3d",
+ "noise": "Noise.Reload",
+ "range_m": 0.0,
+ "volume": [
+ 0.95,
+ 1.0
+ ],
+ "pitch": [
+ 0.98,
+ 1.02
+ ],
+ "priority": 7,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "rld_rifle_empty",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "reload",
+ "params": {
+ "weapon": "rifle",
+ "empty": true
+ },
+ "variants": 2,
+ "seed": 4700,
+ "peak_db": -5,
+ "space": "3d",
+ "noise": "Noise.Reload",
+ "range_m": 0.0,
+ "volume": [
+ 0.95,
+ 1.0
+ ],
+ "pitch": [
+ 0.98,
+ 1.02
+ ],
+ "priority": 7,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "rld_pistol_tactical",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "reload",
+ "params": {
+ "weapon": "pistol",
+ "empty": false
+ },
+ "variants": 2,
+ "seed": 4800,
+ "peak_db": -5,
+ "space": "3d",
+ "noise": "Noise.Reload",
+ "range_m": 0.0,
+ "volume": [
+ 0.95,
+ 1.0
+ ],
+ "pitch": [
+ 0.98,
+ 1.02
+ ],
+ "priority": 7,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "rld_pistol_empty",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "reload",
+ "params": {
+ "weapon": "pistol",
+ "empty": true
+ },
+ "variants": 2,
+ "seed": 4900,
+ "peak_db": -5,
+ "space": "3d",
+ "noise": "Noise.Reload",
+ "range_m": 0.0,
+ "volume": [
+ 0.95,
+ 1.0
+ ],
+ "pitch": [
+ 0.98,
+ 1.02
+ ],
+ "priority": 7,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "eqp_rifle",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "equip",
+ "params": {
+ "weapon": "rifle"
+ },
+ "variants": 2,
+ "seed": 5000,
+ "peak_db": -8,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 4,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "eqp_pistol",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "equip",
+ "params": {
+ "weapon": "pistol"
+ },
+ "variants": 2,
+ "seed": 5100,
+ "peak_db": -8,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 4,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "eqp_knife",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "equip",
+ "params": {
+ "weapon": "knife"
+ },
+ "variants": 2,
+ "seed": 5200,
+ "peak_db": -8,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 4,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "mel_knife_swing",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "knife_swing",
+ "params": {},
+ "variants": 3,
+ "seed": 5300,
+ "peak_db": -5,
+ "space": "3d",
+ "noise": "Noise.Melee",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 8,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "mel_knife_hit",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "knife_hit",
+ "params": {},
+ "variants": 3,
+ "seed": 5400,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Melee",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 9,
+ "max_voices": 4,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fin_takedown",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "finisher",
+ "params": {
+ "phase": "takedown"
+ },
+ "variants": 2,
+ "seed": 5500,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Finisher",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 9,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fin_struggle",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "finisher",
+ "params": {
+ "phase": "struggle"
+ },
+ "variants": 2,
+ "seed": 5600,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Finisher",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 9,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "fin_kill",
+ "group": "Reloads",
+ "bus": "Foley",
+ "recipe": "cc0_layer",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/knockout.ogg",
+ "synth": "finisher",
+ "phase": "kill",
+ "synth_gain": 1.0
+ },
+ "variants": 2,
+ "seed": 5700,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Finisher",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 9,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "cc0:FS673424,KI"
+ },
+ {
+ "id": "dst_wall_panel",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "destruction",
+ "params": {
+ "piece": "wall_panel"
+ },
+ "variants": 2,
+ "seed": 5800,
+ "peak_db": -2,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_cladding_wall",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "destruction",
+ "params": {
+ "piece": "cladding_wall"
+ },
+ "variants": 2,
+ "seed": 5900,
+ "peak_db": -2,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_container_wall",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "destruction",
+ "params": {
+ "piece": "container_wall"
+ },
+ "variants": 2,
+ "seed": 6000,
+ "peak_db": -2,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_glass_pane",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "destruction",
+ "params": {
+ "piece": "glass_pane"
+ },
+ "variants": 2,
+ "seed": 6100,
+ "peak_db": -2,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_catwalk_segment",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "destruction",
+ "params": {
+ "piece": "catwalk_segment"
+ },
+ "variants": 2,
+ "seed": 6200,
+ "peak_db": -2,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_ceiling_panel",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "destruction",
+ "params": {
+ "piece": "ceiling_panel"
+ },
+ "variants": 2,
+ "seed": 6300,
+ "peak_db": -2,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 7,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_hole",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "impact",
+ "params": {
+ "material": "cladding_panel"
+ },
+ "variants": 2,
+ "seed": 6400,
+ "peak_db": -8,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 4,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_settle_metal",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "debris_settle",
+ "params": {
+ "kind": "metal"
+ },
+ "variants": 2,
+ "seed": 6500,
+ "peak_db": -10,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 2,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_settle_glass",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "debris_settle",
+ "params": {
+ "kind": "glass"
+ },
+ "variants": 2,
+ "seed": 6600,
+ "peak_db": -10,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 2,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "dst_settle_dust",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "debris_settle",
+ "params": {
+ "kind": "dust"
+ },
+ "variants": 2,
+ "seed": 6700,
+ "peak_db": -10,
+ "space": "3d",
+ "noise": "Noise.Fracture",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 2,
+ "max_voices": 6,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "drn_flight",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "drone_flight",
+ "params": {},
+ "variants": 1,
+ "seed": 6800,
+ "peak_db": -10,
+ "space": "3d",
+ "noise": "Noise.Drone",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 5,
+ "max_voices": 3,
+ "loop": true,
+ "licence": "own"
+ },
+ {
+ "id": "drn_weld",
+ "group": "Destruction",
+ "bus": "Destruction",
+ "recipe": "drone_weld",
+ "params": {},
+ "variants": 1,
+ "seed": 6900,
+ "peak_db": -10,
+ "space": "3d",
+ "noise": "Noise.Drone",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 5,
+ "max_voices": 3,
+ "loop": true,
+ "licence": "own"
+ },
+ {
+ "id": "gad_bulwark_deploy",
+ "group": "Gadgets",
+ "bus": "Gadgets",
+ "recipe": "bulwark",
+ "params": {
+ "event": "deploy"
+ },
+ "variants": 2,
+ "seed": 7000,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Gadget.BulwarkDeploy",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 8,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "gad_bulwark_hum",
+ "group": "Gadgets",
+ "bus": "Gadgets",
+ "recipe": "bulwark",
+ "params": {
+ "event": "hum"
+ },
+ "variants": 1,
+ "seed": 7100,
+ "peak_db": -12,
+ "space": "3d",
+ "noise": "Noise.Gadget.BulwarkHum",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 6,
+ "max_voices": 2,
+ "loop": true,
+ "licence": "own"
+ },
+ {
+ "id": "gad_bulwark_destroyed",
+ "group": "Gadgets",
+ "bus": "Gadgets",
+ "recipe": "bulwark",
+ "params": {
+ "event": "destroyed"
+ },
+ "variants": 2,
+ "seed": 7200,
+ "peak_db": -3,
+ "space": "3d",
+ "noise": "Noise.Gadget.BulwarkDeploy",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 8,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "gad_breach_plant",
+ "group": "Gadgets",
+ "bus": "Gadgets",
+ "recipe": "breach",
+ "params": {
+ "event": "plant"
+ },
+ "variants": 2,
+ "seed": 7300,
+ "peak_db": -6,
+ "space": "3d",
+ "noise": "Noise.Gadget.BreachPlant",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 8,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "gad_breach_detonate",
+ "group": "Gadgets",
+ "bus": "Gadgets",
+ "recipe": "breach",
+ "params": {
+ "event": "detonate"
+ },
+ "variants": 2,
+ "seed": 7400,
+ "peak_db": -1,
+ "space": "3d",
+ "noise": "Noise.Gadget.BreachDetonate",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 10,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "amb_bridge",
+ "group": "Ambience",
+ "bus": "Ambience",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/amb_bridge.ogg"
+ },
+ "variants": 1,
+ "seed": 7500,
+ "peak_db": -14,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 2,
+ "max_voices": 1,
+ "loop": true,
+ "licence": "cc0:FS619320"
+ },
+ {
+ "id": "amb_ops",
+ "group": "Ambience",
+ "bus": "Ambience",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/amb_ops.ogg"
+ },
+ "variants": 1,
+ "seed": 7600,
+ "peak_db": -14,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 2,
+ "max_voices": 1,
+ "loop": true,
+ "licence": "cc0:FS429188"
+ },
+ {
+ "id": "amb_engineering",
+ "group": "Ambience",
+ "bus": "Ambience",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/amb_engineering.ogg"
+ },
+ "variants": 1,
+ "seed": 7700,
+ "peak_db": -14,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 2,
+ "max_voices": 1,
+ "loop": true,
+ "licence": "cc0:FS749979"
+ },
+ {
+ "id": "amb_hangar",
+ "group": "Ambience",
+ "bus": "Ambience",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/amb_hangar.ogg"
+ },
+ "variants": 1,
+ "seed": 7800,
+ "peak_db": -14,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 2,
+ "max_voices": 1,
+ "loop": true,
+ "licence": "cc0:FS587617"
+ },
+ {
+ "id": "amb_crew_bed",
+ "group": "Ambience",
+ "bus": "Ambience",
+ "recipe": "crew_bed",
+ "params": {},
+ "variants": 1,
+ "seed": 7900,
+ "peak_db": -18,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 2,
+ "max_voices": 1,
+ "loop": true,
+ "licence": "own"
+ },
+ {
+ "id": "ui_click",
+ "group": "UI",
+ "bus": "UI",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/ui_click.ogg"
+ },
+ "variants": 1,
+ "seed": 8000,
+ "peak_db": -10,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 4,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "cc0:FS448394"
+ },
+ {
+ "id": "ui_hover",
+ "group": "UI",
+ "bus": "UI",
+ "recipe": "ui_tick",
+ "params": {
+ "hz": 3600
+ },
+ "variants": 2,
+ "seed": 8100,
+ "peak_db": -18,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 0.92,
+ 1.0
+ ],
+ "pitch": [
+ 0.96,
+ 1.04
+ ],
+ "priority": 2,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "ui_confirm",
+ "group": "UI",
+ "bus": "UI",
+ "recipe": "ui_tone",
+ "params": {
+ "notes": [
+ 660,
+ 990
+ ]
+ },
+ "variants": 1,
+ "seed": 8200,
+ "peak_db": -12,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 4,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "ui_back",
+ "group": "UI",
+ "bus": "UI",
+ "recipe": "ui_tone",
+ "params": {
+ "notes": [
+ 880,
+ 587
+ ]
+ },
+ "variants": 1,
+ "seed": 8300,
+ "peak_db": -12,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 4,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "ui_panel_open",
+ "group": "UI",
+ "bus": "UI",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/ui_click.ogg",
+ "pitch": 1.12
+ },
+ "variants": 1,
+ "seed": 8400,
+ "peak_db": -12,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 3,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "cc0:FS448394"
+ },
+ {
+ "id": "ui_panel_close",
+ "group": "UI",
+ "bus": "UI",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/ui_click.ogg",
+ "pitch": 0.88
+ },
+ "variants": 1,
+ "seed": 8500,
+ "peak_db": -12,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 3,
+ "max_voices": 2,
+ "loop": false,
+ "licence": "cc0:FS448394"
+ },
+ {
+ "id": "ui_level_bell",
+ "group": "UI",
+ "bus": "UI",
+ "recipe": "bell",
+ "params": {},
+ "variants": 1,
+ "seed": 8600,
+ "peak_db": -8,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 5,
+ "max_voices": 1,
+ "loop": false,
+ "licence": "own"
+ },
+ {
+ "id": "lift_door_open",
+ "group": "UI",
+ "bus": "Ambience",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/door_open.ogg"
+ },
+ "variants": 1,
+ "seed": 8700,
+ "peak_db": -8,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 4,
+ "max_voices": 1,
+ "loop": false,
+ "licence": "cc0:FS477846,FS161228"
+ },
+ {
+ "id": "lift_door_close",
+ "group": "UI",
+ "bus": "Ambience",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/door_close.ogg"
+ },
+ "variants": 1,
+ "seed": 8800,
+ "peak_db": -8,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 4,
+ "max_voices": 1,
+ "loop": false,
+ "licence": "cc0:FS477846,FS161230"
+ },
+ {
+ "id": "lift_ride",
+ "group": "UI",
+ "bus": "Ambience",
+ "recipe": "cc0",
+ "params": {
+ "file": "dodaios/ui/web/frontend/public/verse/audio/lift_ride.ogg"
+ },
+ "variants": 1,
+ "seed": 8900,
+ "peak_db": -12,
+ "space": "2d",
+ "noise": "",
+ "range_m": 0.0,
+ "volume": [
+ 1,
+ 1
+ ],
+ "pitch": [
+ 1,
+ 1
+ ],
+ "priority": 4,
+ "max_voices": 1,
+ "loop": true,
+ "licence": "cc0:FS221929"
+ }
+ ]
+}
diff --git a/unreal/Verse/Data/audio/mix.json b/unreal/Verse/Data/audio/mix.json
new file mode 100644
index 0000000000..c7f9732f69
--- /dev/null
+++ b/unreal/Verse/Data/audio/mix.json
@@ -0,0 +1,14 @@
+{
+ "schema": "verse.audio.mix/1",
+ "owner": "WP19",
+ "master_gain_db": -7.7,
+ "bus_gain_db": {"Weapons": 0.0, "Impacts": -3.0, "Foley": -4.0, "Destruction": -2.0, "Gadgets": -3.0, "Ambience": -6.0, "UI": -8.0},
+ "limiter": {"threshold_db": -2.5, "lookahead_ms": 3.0, "attack_ms": 1.0, "release_ms": 120.0},
+ "max_voices": 64,
+ "dormant_unmute_fade_s": 0.15,
+ "distance": {"reference_m": 1.5, "rolloff": 0.6, "fade_start_fraction": 0.7, "floor_db": -48.0},
+ "shot_layers": {"near_full_m": 8.0, "far_full_m": 35.0},
+ "flyby": {"radius_m": 3.5, "bolt_speed_mps": 300.0},
+ "debris_settle_delay_s": [0.6, 0.9],
+ "occlusion_refresh_s": 0.25
+}
diff --git a/unreal/Verse/Data/audio/occlusion.json b/unreal/Verse/Data/audio/occlusion.json
new file mode 100644
index 0000000000..d8b5b7057f
--- /dev/null
+++ b/unreal/Verse/Data/audio/occlusion.json
@@ -0,0 +1,17 @@
+{
+ "schema": "verse.audio.occlusion/1",
+ "owner": "WP19",
+ "note": "Sound through a piece: transmission loss and a low-pass per penetration-table material (destruction.md 2 wire order). Holes and breaches open the path because the penetration query honours them.",
+ "max_loss_db": -36.0,
+ "open_lowpass_hz": 20000.0,
+ "materials": [
+ {"material": "SheetMetal", "transmission_db": -9.0, "lowpass_hz": 2500.0},
+ {"material": "ContainerWall", "transmission_db": -12.0, "lowpass_hz": 1500.0},
+ {"material": "Glass", "transmission_db": -4.0, "lowpass_hz": 6000.0},
+ {"material": "CladdingPanel", "transmission_db": -10.0, "lowpass_hz": 2000.0},
+ {"material": "CatwalkGrating", "transmission_db": -1.0, "lowpass_hz": 15000.0},
+ {"material": "CeilingPanel", "transmission_db": -6.0, "lowpass_hz": 3000.0},
+ {"material": "Concrete", "transmission_db": -20.0, "lowpass_hz": 700.0},
+ {"material": "ArmorSteel", "transmission_db": -18.0, "lowpass_hz": 900.0}
+ ]
+}
diff --git a/unreal/Verse/Data/audio/reference_duel.json b/unreal/Verse/Data/audio/reference_duel.json
new file mode 100644
index 0000000000..8d4600c278
--- /dev/null
+++ b/unreal/Verse/Data/audio/reference_duel.json
@@ -0,0 +1,2540 @@
+{
+"schema": "verse.audio.replay/1",
+"owner": "WP19",
+"name": "reference duel, hangar, 90 s",
+"note": "Fixed timeline as heard by the person. d = source distance in m; own = the listener's own sound; own_feedback = the listener's own bolt impact (cue range_m instead of Noise.Impact).",
+"length_s": 90.0,
+"events": [
+{
+"t": 0.0,
+"kind": "cue",
+"cue": "amb_hangar",
+"until": 90.0
+},
+{
+"t": 2.0,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 2.094,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 27.7,
+"own_feedback": true
+},
+{
+"t": 2.1,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 2.194,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 27.7,
+"own_feedback": true
+},
+{
+"t": 2.2,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 2.294,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 27.7,
+"own_feedback": true
+},
+{
+"t": 3.099,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 33.9
+},
+{
+"t": 3.204,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 33.9
+},
+{
+"t": 3.213,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 0.87
+},
+{
+"t": 3.299,
+"kind": "cue",
+"cue": "imp_hurt",
+"own": true
+},
+{
+"t": 3.309,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 33.9
+},
+{
+"t": 3.318,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.15
+},
+{
+"t": 3.414,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 33.9
+},
+{
+"t": 3.423,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.17
+},
+{
+"t": 3.519,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 33.9
+},
+{
+"t": 3.528,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.31
+},
+{
+"t": 3.633,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.92
+},
+{
+"t": 4.731,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 4.731,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.4
+},
+{
+"t": 5.061,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.4
+},
+{
+"t": 5.071,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 5.391,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.4
+},
+{
+"t": 5.411,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 5.721,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.4
+},
+{
+"t": 5.751,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 6.051,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.4
+},
+{
+"t": 6.091,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 6.381,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.4
+},
+{
+"t": 6.431,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 7.864,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 7.944,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 23.4,
+"own_feedback": true
+},
+{
+"t": 7.964,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 8.044,
+"kind": "cue",
+"cue": "imp_armor_steel",
+"d": 23.4,
+"own_feedback": true
+},
+{
+"t": 8.064,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 8.144,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 23.4,
+"own_feedback": true
+},
+{
+"t": 8.164,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 8.244,
+"kind": "cue",
+"cue": "imp_armor_steel",
+"d": 23.4,
+"own_feedback": true
+},
+{
+"t": 8.264,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 8.344,
+"kind": "cue",
+"cue": "imp_glass",
+"d": 23.4,
+"own_feedback": true
+},
+{
+"t": 9.918,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 28.6
+},
+{
+"t": 10.013,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 1.58
+},
+{
+"t": 10.023,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 28.6
+},
+{
+"t": 10.118,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 2.07
+},
+{
+"t": 10.128,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 28.6
+},
+{
+"t": 10.223,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 2.26
+},
+{
+"t": 10.233,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 28.6
+},
+{
+"t": 10.328,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.64
+},
+{
+"t": 11.517,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 11.517,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.9
+},
+{
+"t": 11.847,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.9
+},
+{
+"t": 11.857,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 12.177,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.9
+},
+{
+"t": 12.197,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 12.507,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.9
+},
+{
+"t": 12.537,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 12.837,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.9
+},
+{
+"t": 12.877,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 13.167,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.9
+},
+{
+"t": 13.217,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 13.557,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 13.897,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 14.93,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 15.003,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 21.5,
+"own_feedback": true
+},
+{
+"t": 15.03,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 15.103,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 21.5,
+"own_feedback": true
+},
+{
+"t": 15.13,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 15.203,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 21.5,
+"own_feedback": true
+},
+{
+"t": 15.23,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 15.303,
+"kind": "cue",
+"cue": "imp_glass",
+"d": 21.5,
+"own_feedback": true
+},
+{
+"t": 16.101,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.2
+},
+{
+"t": 16.158,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 1.42
+},
+{
+"t": 16.206,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.2
+},
+{
+"t": 16.263,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 0.93
+},
+{
+"t": 16.311,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.2
+},
+{
+"t": 16.416,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.2
+},
+{
+"t": 16.473,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.59
+},
+{
+"t": 16.521,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.2
+},
+{
+"t": 16.578,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 0.71
+},
+{
+"t": 16.626,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.2
+},
+{
+"t": 16.683,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.21
+},
+{
+"t": 17.899,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 18.239,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 18.579,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 18.919,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 19.259,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 19.599,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 19.939,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 20.279,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 20.619,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 22.09,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 22.156,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 19.1,
+"own_feedback": true
+},
+{
+"t": 22.19,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 22.256,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 19.1,
+"own_feedback": true
+},
+{
+"t": 22.29,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 22.356,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 19.1,
+"own_feedback": true
+},
+{
+"t": 22.39,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 22.456,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 19.1,
+"own_feedback": true
+},
+{
+"t": 22.49,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 22.556,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 19.1,
+"own_feedback": true
+},
+{
+"t": 22.59,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 22.656,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 19.1,
+"own_feedback": true
+},
+{
+"t": 22.69,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 22.756,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 19.1,
+"own_feedback": true
+},
+{
+"t": 24.164,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 11.5
+},
+{
+"t": 24.203,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.66
+},
+{
+"t": 24.269,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 11.5
+},
+{
+"t": 24.374,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 11.5
+},
+{
+"t": 24.479,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 11.5
+},
+{
+"t": 26.043,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 26.043,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.8
+},
+{
+"t": 26.373,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.8
+},
+{
+"t": 26.383,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 26.703,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.8
+},
+{
+"t": 26.723,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 27.033,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.8
+},
+{
+"t": 27.063,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 27.363,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.8
+},
+{
+"t": 27.403,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 27.693,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.8
+},
+{
+"t": 27.743,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 28.083,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 28.423,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 28.763,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 30.466,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 30.555,
+"kind": "cue",
+"cue": "imp_glass",
+"d": 26.3,
+"own_feedback": true
+},
+{
+"t": 30.566,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 30.655,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 26.3,
+"own_feedback": true
+},
+{
+"t": 30.666,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 30.755,
+"kind": "cue",
+"cue": "imp_glass",
+"d": 26.3,
+"own_feedback": true
+},
+{
+"t": 30.766,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 30.855,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 26.3,
+"own_feedback": true
+},
+{
+"t": 30.866,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 30.955,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 26.3,
+"own_feedback": true
+},
+{
+"t": 31.935,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 30.6
+},
+{
+"t": 32.037,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 2.3
+},
+{
+"t": 32.04,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 30.6
+},
+{
+"t": 32.135,
+"kind": "cue",
+"cue": "imp_hurt",
+"own": true
+},
+{
+"t": 32.145,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 30.6
+},
+{
+"t": 32.25,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 30.6
+},
+{
+"t": 32.352,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 1.53
+},
+{
+"t": 32.355,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 30.6
+},
+{
+"t": 32.457,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 1.32
+},
+{
+"t": 32.46,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 30.6
+},
+{
+"t": 32.562,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.07
+},
+{
+"t": 33.821,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 34.161,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 34.501,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 34.841,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 35.181,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 35.521,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 35.861,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 36.201,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 36.807,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 36.885,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 22.8,
+"own_feedback": true
+},
+{
+"t": 36.907,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 36.985,
+"kind": "cue",
+"cue": "imp_armor_steel",
+"d": 22.8,
+"own_feedback": true
+},
+{
+"t": 37.007,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 37.085,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 22.8,
+"own_feedback": true
+},
+{
+"t": 37.107,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 37.185,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 22.8,
+"own_feedback": true
+},
+{
+"t": 37.998,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 16.9
+},
+{
+"t": 38.055,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 2.19
+},
+{
+"t": 38.103,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 16.9
+},
+{
+"t": 38.16,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.51
+},
+{
+"t": 38.198,
+"kind": "cue",
+"cue": "imp_hurt",
+"own": true
+},
+{
+"t": 38.208,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 16.9
+},
+{
+"t": 38.265,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 2.35
+},
+{
+"t": 38.313,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 16.9
+},
+{
+"t": 38.37,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.1
+},
+{
+"t": 40.109,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 40.449,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 40.789,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 41.129,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 41.469,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 41.809,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 42.149,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 42.489,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 43.72,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 43.82,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 43.825,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 30.9,
+"own_feedback": true
+},
+{
+"t": 43.92,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 43.925,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 30.9,
+"own_feedback": true
+},
+{
+"t": 44.02,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 44.025,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 30.9,
+"own_feedback": true
+},
+{
+"t": 44.12,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 44.125,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 30.9,
+"own_feedback": true
+},
+{
+"t": 44.225,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 30.9,
+"own_feedback": true
+},
+{
+"t": 45.396,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.4
+},
+{
+"t": 45.474,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.5
+},
+{
+"t": 45.501,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.4
+},
+{
+"t": 45.596,
+"kind": "cue",
+"cue": "imp_hurt",
+"own": true
+},
+{
+"t": 45.606,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.4
+},
+{
+"t": 45.684,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.64
+},
+{
+"t": 45.711,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.4
+},
+{
+"t": 45.789,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 2.31
+},
+{
+"t": 45.816,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.4
+},
+{
+"t": 45.894,
+"kind": "cue",
+"cue": "imp_glass",
+"d": 2.79
+},
+{
+"t": 47.284,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 47.284,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.1
+},
+{
+"t": 47.614,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.1
+},
+{
+"t": 47.624,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 47.944,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.1
+},
+{
+"t": 47.964,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 48.274,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.1
+},
+{
+"t": 48.304,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 48.604,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.1
+},
+{
+"t": 48.644,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 48.934,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 5.1
+},
+{
+"t": 48.984,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 49.324,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 49.664,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 50.004,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 50.344,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 51.068,
+"kind": "cue",
+"cue": "dst_container_wall",
+"d": 15.3,
+"loudness": 0.7
+},
+{
+"t": 51.068,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 51.168,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 51.176,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 31.7,
+"own_feedback": true
+},
+{
+"t": 51.268,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 51.276,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 31.7,
+"own_feedback": true
+},
+{
+"t": 51.368,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 51.376,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 31.7,
+"own_feedback": true
+},
+{
+"t": 51.468,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 51.476,
+"kind": "cue",
+"cue": "imp_armor_steel",
+"d": 31.7,
+"own_feedback": true
+},
+{
+"t": 51.568,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 51.576,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 31.7,
+"own_feedback": true
+},
+{
+"t": 51.668,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 51.676,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 31.7,
+"own_feedback": true
+},
+{
+"t": 51.776,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 31.7,
+"own_feedback": true
+},
+{
+"t": 51.818,
+"kind": "cue",
+"cue": "dst_settle_metal",
+"d": 15.3,
+"loudness": 0.7
+},
+{
+"t": 52.394,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 11.2
+},
+{
+"t": 52.431,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 0.93
+},
+{
+"t": 52.499,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 11.2
+},
+{
+"t": 52.536,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 2.55
+},
+{
+"t": 52.594,
+"kind": "cue",
+"cue": "imp_hurt",
+"own": true
+},
+{
+"t": 52.604,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 11.2
+},
+{
+"t": 52.641,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 1.36
+},
+{
+"t": 55.158,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 55.158,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.0
+},
+{
+"t": 55.488,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.0
+},
+{
+"t": 55.498,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 55.818,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.0
+},
+{
+"t": 55.838,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 56.148,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.0
+},
+{
+"t": 56.178,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 56.478,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.0
+},
+{
+"t": 56.518,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 56.808,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.0
+},
+{
+"t": 57.897,
+"kind": "cue",
+"cue": "rld_rifle_tactical",
+"own": true
+},
+{
+"t": 59.897,
+"kind": "cue",
+"cue": "dst_glass_pane",
+"d": 10.1,
+"loudness": 0.7
+},
+{
+"t": 59.897,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 59.96,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 18.3,
+"own_feedback": true
+},
+{
+"t": 59.997,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 60.0,
+"kind": "cue",
+"cue": "gad_breach_detonate",
+"d": 22.0
+},
+{
+"t": 60.06,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 18.3,
+"own_feedback": true
+},
+{
+"t": 60.097,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 60.16,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 18.3,
+"own_feedback": true
+},
+{
+"t": 60.197,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 60.26,
+"kind": "cue",
+"cue": "imp_armor_steel",
+"d": 18.3,
+"own_feedback": true
+},
+{
+"t": 60.297,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 60.36,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 18.3,
+"own_feedback": true
+},
+{
+"t": 60.397,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 60.4,
+"kind": "cue",
+"cue": "dst_container_wall",
+"d": 22.0,
+"loudness": 1.0
+},
+{
+"t": 60.46,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 18.3,
+"own_feedback": true
+},
+{
+"t": 60.647,
+"kind": "cue",
+"cue": "dst_settle_metal",
+"d": 10.1,
+"loudness": 0.7
+},
+{
+"t": 62.09,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 15.5
+},
+{
+"t": 62.142,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 2.07
+},
+{
+"t": 62.195,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 15.5
+},
+{
+"t": 62.247,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.84
+},
+{
+"t": 62.3,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 15.5
+},
+{
+"t": 62.352,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 1.13
+},
+{
+"t": 62.405,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 15.5
+},
+{
+"t": 62.51,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 15.5
+},
+{
+"t": 62.615,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 15.5
+},
+{
+"t": 64.004,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 64.344,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 64.684,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 65.024,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 65.364,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 65.704,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 66.044,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 66.384,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 67.889,
+"kind": "cue",
+"cue": "dst_glass_pane",
+"d": 19.6,
+"loudness": 0.7
+},
+{
+"t": 67.889,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 67.977,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 25.9,
+"own_feedback": true
+},
+{
+"t": 67.989,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 68.077,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 25.9,
+"own_feedback": true
+},
+{
+"t": 68.089,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 68.177,
+"kind": "cue",
+"cue": "imp_sheet_metal",
+"d": 25.9,
+"own_feedback": true
+},
+{
+"t": 68.639,
+"kind": "cue",
+"cue": "dst_settle_metal",
+"d": 19.6,
+"loudness": 0.7
+},
+{
+"t": 69.651,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.9
+},
+{
+"t": 69.756,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.9
+},
+{
+"t": 69.861,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.9
+},
+{
+"t": 69.966,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.9
+},
+{
+"t": 70.045,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 1.06
+},
+{
+"t": 70.071,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.9
+},
+{
+"t": 70.176,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 23.9
+},
+{
+"t": 70.255,
+"kind": "cue",
+"cue": "imp_glass",
+"d": 2.31
+},
+{
+"t": 71.636,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 71.976,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 72.316,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 72.656,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 72.996,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 73.336,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 73.676,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 74.016,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 74.356,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 74.696,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 76.121,
+"kind": "cue",
+"cue": "dst_wall_panel",
+"d": 14.6,
+"loudness": 0.7
+},
+{
+"t": 76.121,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 76.174,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 15.2,
+"own_feedback": true
+},
+{
+"t": 76.221,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 76.274,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 15.2,
+"own_feedback": true
+},
+{
+"t": 76.321,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 76.374,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 15.2,
+"own_feedback": true
+},
+{
+"t": 76.421,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 76.474,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 15.2,
+"own_feedback": true
+},
+{
+"t": 76.521,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 76.574,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 15.2,
+"own_feedback": true
+},
+{
+"t": 76.621,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 76.674,
+"kind": "cue",
+"cue": "imp_armor_steel",
+"d": 15.2,
+"own_feedback": true
+},
+{
+"t": 76.871,
+"kind": "cue",
+"cue": "dst_settle_metal",
+"d": 14.6,
+"loudness": 0.7
+},
+{
+"t": 77.603,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.3
+},
+{
+"t": 77.661,
+"kind": "cue",
+"cue": "imp_cladding_panel",
+"d": 2.65
+},
+{
+"t": 77.708,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.3
+},
+{
+"t": 77.813,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.3
+},
+{
+"t": 77.918,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.3
+},
+{
+"t": 77.976,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 0.92
+},
+{
+"t": 78.023,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 17.3
+},
+{
+"t": 78.081,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 2.42
+},
+{
+"t": 79.18,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 79.18,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.6
+},
+{
+"t": 79.51,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.6
+},
+{
+"t": 79.52,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 79.84,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.6
+},
+{
+"t": 79.86,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 80.17,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.6
+},
+{
+"t": 80.2,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 80.5,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.6
+},
+{
+"t": 80.54,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 80.83,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 6.6
+},
+{
+"t": 80.88,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 81.22,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 82.218,
+"kind": "cue",
+"cue": "dst_glass_pane",
+"d": 17.1,
+"loudness": 0.7
+},
+{
+"t": 82.218,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 82.313,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 27.8,
+"own_feedback": true
+},
+{
+"t": 82.318,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 82.413,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 27.8,
+"own_feedback": true
+},
+{
+"t": 82.418,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 82.513,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 27.8,
+"own_feedback": true
+},
+{
+"t": 82.518,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 82.613,
+"kind": "cue",
+"cue": "imp_container_wall",
+"d": 27.8,
+"own_feedback": true
+},
+{
+"t": 82.618,
+"kind": "shot",
+"own": true,
+"weapon": "rifle"
+},
+{
+"t": 82.713,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 27.8,
+"own_feedback": true
+},
+{
+"t": 82.968,
+"kind": "cue",
+"cue": "dst_settle_metal",
+"d": 17.1,
+"loudness": 0.7
+},
+{
+"t": 84.0,
+"kind": "cue",
+"cue": "fin_takedown",
+"own": true
+},
+{
+"t": 84.277,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 22.4
+},
+{
+"t": 84.351,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 2.7
+},
+{
+"t": 84.382,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 22.4
+},
+{
+"t": 84.456,
+"kind": "cue",
+"cue": "imp_concrete",
+"d": 2.07
+},
+{
+"t": 84.477,
+"kind": "cue",
+"cue": "imp_hurt",
+"own": true
+},
+{
+"t": 84.487,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 22.4
+},
+{
+"t": 84.592,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 22.4
+},
+{
+"t": 84.666,
+"kind": "cue",
+"cue": "imp_catwalk_grating",
+"d": 0.87
+},
+{
+"t": 84.697,
+"kind": "shot",
+"own": false,
+"weapon": "rifle",
+"d": 22.4
+},
+{
+"t": 84.771,
+"kind": "cue",
+"cue": "bolt_flyby",
+"d": 1.95
+},
+{
+"t": 84.9,
+"kind": "cue",
+"cue": "fin_struggle",
+"own": true
+},
+{
+"t": 86.0,
+"kind": "cue",
+"cue": "fin_kill",
+"own": true
+},
+{
+"t": 86.002,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 86.002,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 7.0
+},
+{
+"t": 86.332,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 7.0
+},
+{
+"t": 86.342,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 86.662,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 7.0
+},
+{
+"t": 86.682,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 86.992,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 7.0
+},
+{
+"t": 87.022,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 87.322,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 7.0
+},
+{
+"t": 87.362,
+"kind": "cue",
+"cue": "fs_metal_boots",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 87.652,
+"kind": "cue",
+"cue": "fs_concrete",
+"d": 7.0
+},
+{
+"t": 87.702,
+"kind": "cue",
+"cue": "fs_metal",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 88.042,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 88.382,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 88.722,
+"kind": "cue",
+"cue": "fs_grating",
+"own": true,
+"gain": 0.45
+},
+{
+"t": 89.904,
+"kind": "cue",
+"cue": "rld_rifle_empty",
+"own": true
+}
+]
+}
diff --git a/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioCueSet.cpp b/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioCueSet.cpp
new file mode 100644
index 0000000000..7ca595e1bd
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioCueSet.cpp
@@ -0,0 +1,102 @@
+#include "Audio/VerseAudioCueSet.h"
+
+#include "AssetRegistry/AssetData.h"
+#include "AssetRegistry/IAssetRegistry.h"
+#include "Misc/PackageName.h"
+#include "Noise/VerseAudibilityTable.h"
+
+const TCHAR* UVerseAudioCueSet::DefaultAssetPath = TEXT("/Game/Verse/Audio/DA_AudioCues.DA_AudioCues");
+const TCHAR* UVerseAudioCueSet::SharedAudibilityPath = TEXT("/Game/Verse/Core/DA_Audibility.DA_Audibility");
+
+FVerseAudioMixSettings::FVerseAudioMixSettings()
+{
+ // mix.json bus_gain_db, EVerseAudioBus order.
+ BusGainDb = {0.f, -3.f, -4.f, -2.f, -3.f, -6.f, -8.f};
+ // occlusion.json, penetration-table wire order (destruction.md 2).
+ OcclusionLossDb = {-9.f, -12.f, -4.f, -10.f, -1.f, -6.f, -20.f, -18.f};
+ OcclusionLowpassHz = {2500.f, 1500.f, 6000.f, 2000.f, 15000.f, 3000.f, 700.f, 900.f};
+}
+
+const FVerseAudioCue* UVerseAudioCueSet::FindCue(FName CueId) const
+{
+ if (Index.Num() != Cues.Num())
+ {
+ const_cast<UVerseAudioCueSet*>(this)->RebuildIndex();
+ }
+ const int32* Found = Index.Find(CueId);
+ return Found && Cues.IsValidIndex(*Found) && Cues[*Found].CueId == CueId ? &Cues[*Found] : nullptr;
+}
+
+const UVerseAudibilityTable* UVerseAudioCueSet::FindSharedAudibility()
+{
+ const FString PackageName = FPackageName::ObjectPathToPackageName(FString(SharedAudibilityPath));
+ if (FPackageName::DoesPackageExist(PackageName))
+ {
+ if (const UVerseAudibilityTable* AtPath =
+ LoadObject<UVerseAudibilityTable>(nullptr, SharedAudibilityPath, nullptr, LOAD_NoWarn | LOAD_Quiet))
+ {
+ return AtPath;
+ }
+ }
+ // The asset may live elsewhere; there is exactly one table in the project (bot.md 3.2, F6).
+ if (IAssetRegistry* Registry = IAssetRegistry::Get())
+ {
+ TArray<FAssetData> Assets;
+ Registry->GetAssetsByClass(UVerseAudibilityTable::StaticClass()->GetClassPathName(), Assets, true);
+ Assets.Sort([](const FAssetData& A, const FAssetData& B) { return A.PackageName.LexicalLess(B.PackageName); });
+ for (const FAssetData& Asset : Assets)
+ {
+ if (const UVerseAudibilityTable* Found = Cast<UVerseAudibilityTable>(Asset.GetAsset()))
+ {
+ return Found;
+ }
+ }
+ }
+ return nullptr;
+}
+
+const UVerseAudibilityTable& UVerseAudioCueSet::GetAudibility() const
+{
+ if (Audibility)
+ {
+ return *Audibility;
+ }
+ if (!bSearchedSharedAudibility)
+ {
+ bSearchedSharedAudibility = true;
+ SharedAudibility = FindSharedAudibility();
+ }
+ if (const UVerseAudibilityTable* Shared = SharedAudibility.Get())
+ {
+ return *Shared;
+ }
+ return *GetDefault<UVerseAudibilityTable>();
+}
+
+FName UVerseAudioCueSet::WeaponProfileFor(FName WeaponId) const
+{
+ const FString Id = WeaponId.ToString();
+ for (const FName& Profile : WeaponProfiles)
+ {
+ if (Id.Contains(Profile.ToString(), ESearchCase::IgnoreCase))
+ {
+ return Profile;
+ }
+ }
+ return DefaultWeaponProfile;
+}
+
+void UVerseAudioCueSet::RebuildIndex()
+{
+ Index.Reset();
+ for (int32 I = 0; I < Cues.Num(); ++I)
+ {
+ Index.Add(Cues[I].CueId, I);
+ }
+}
+
+void UVerseAudioCueSet::PostLoad()
+{
+ Super::PostLoad();
+ RebuildIndex();
+}
diff --git a/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioMath.cpp b/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioMath.cpp
new file mode 100644
index 0000000000..e4f9e9ddb1
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioMath.cpp
@@ -0,0 +1,312 @@
+#include "Audio/VerseAudioMath.h"
+
+#include "AudioDevice.h"
+#include "Curves/RichCurve.h"
+#include "Destruction/VerseDestructionInterfaces.h"
+#include "Noise/VerseAudibilityTable.h"
+#include "Sound/SoundAttenuation.h"
+#include "VerseGameplayTags.h"
+
+namespace Verse::Audio
+{
+ float DbToGain(float Db)
+ {
+ return FMath::Pow(10.f, Db / 20.f);
+ }
+
+ FGameplayTag NoiseTagByName(FName TagName)
+ {
+ for (const FGameplayTag& Tag : VerseTags::AllNoiseTags())
+ {
+ if (Tag.GetTagName() == TagName)
+ {
+ return Tag;
+ }
+ }
+ return FGameplayTag();
+ }
+
+ float DistanceGain(float DistanceM, float RangeM, const FVerseAudioMixSettings& Mix)
+ {
+ const float D = FMath::Max(0.f, DistanceM);
+ const float Ref = FMath::Max(0.01f, Mix.ReferenceM);
+ float Gain = D <= Ref ? 1.f : FMath::Pow(Ref / D, Mix.Rolloff);
+ Gain = FMath::Max(Gain, DbToGain(Mix.FloorDb));
+ if (RangeM <= 0.f)
+ {
+ return Gain;
+ }
+ if (D >= RangeM)
+ {
+ return 0.f;
+ }
+ const float Start = Mix.FadeStartFraction * RangeM;
+ if (D > Start)
+ {
+ const float U = (D - Start) / FMath::Max(KINDA_SMALL_NUMBER, RangeM - Start);
+ Gain *= 1.f - (3.f * U * U - 2.f * U * U * U);
+ }
+ return Gain;
+ }
+
+ float MaxAttenuationDistanceCm(float RangeM)
+ {
+ const float WorldMax = FAudioDevice::GetMaxWorldDistance();
+ return FMath::Min(FMath::Max(0.f, RangeM) * 100.f, WorldMax);
+ }
+
+ void BuildAttenuation(float RangeM, const FVerseAudioMixSettings& Mix, FSoundAttenuationSettings& Out)
+ {
+ Out = FSoundAttenuationSettings();
+ Out.bAttenuate = true;
+ Out.bSpatialize = true;
+ Out.bEnableOcclusion = false; // occlusion is traced through pieces by the subsystem
+ Out.DistanceAlgorithm = EAttenuationDistanceModel::Custom;
+ Out.AttenuationShape = EAttenuationShape::Sphere;
+ Out.AttenuationShapeExtents = FVector::ZeroVector;
+ const float RangeCm = MaxAttenuationDistanceCm(RangeM);
+ Out.FalloffDistance = RangeCm;
+
+ FRichCurve* Curve = Out.CustomAttenuationCurve.GetRichCurve();
+ Curve->Reset();
+ auto Key = [Curve](float Time, float Value)
+ {
+ const FKeyHandle Handle = Curve->AddKey(FMath::Clamp(Time, 0.f, 1.f), Value);
+ Curve->SetKeyInterpMode(Handle, RCIM_Linear);
+ };
+ const float RangeEffM = FMath::Max(0.01f, RangeCm / 100.f);
+ const float FadeStartM = Mix.FadeStartFraction * RangeEffM;
+ Key(0.f, 1.f);
+ for (float D = FMath::Max(0.05f, Mix.ReferenceM); D < FadeStartM; D *= 1.4f)
+ {
+ Key(D / RangeEffM, DistanceGain(D, RangeM, Mix));
+ }
+ constexpr int32 FadeKeys = 8;
+ for (int32 I = 0; I < FadeKeys; ++I)
+ {
+ const float D = FadeStartM + (RangeEffM - FadeStartM) * float(I) / float(FadeKeys);
+ Key(D / RangeEffM, DistanceGain(D, RangeM, Mix));
+ }
+ Key(1.f, 0.f); // the curve ends at 0, so the attenuation ends exactly at FalloffDistance
+
+ const bool bFinite = RangeM < UVerseAudibilityTable::WholeArenaRangeM;
+ Out.bAttenuateWithLPF = bFinite;
+ Out.LPFRadiusMin = 0.35f * RangeCm;
+ Out.LPFRadiusMax = RangeCm;
+ Out.LPFFrequencyAtMin = 20000.f;
+ Out.LPFFrequencyAtMax = 3500.f;
+ }
+
+ float ShotFarWeight(float DistanceM, const FVerseAudioMixSettings& Mix)
+ {
+ return FMath::SmoothStep(Mix.ShotNearFullM, Mix.ShotFarFullM, DistanceM);
+ }
+
+ float FractureLoudness(EVersePieceState From, EVersePieceState To, EVerseFractureCause Cause,
+ EVersePenetrationMaterial Material)
+ {
+ if (Cause == EVerseFractureCause::Repair || Cause == EVerseFractureCause::Reset)
+ {
+ return 0.f;
+ }
+ switch (To)
+ {
+ case EVersePieceState::Damaged:
+ case EVersePieceState::Holed:
+ return Verse::Destruction::FractureLoudness(EVerseFractureNoise::BoltHole);
+ case EVersePieceState::Breached:
+ case EVersePieceState::Destroyed:
+ if (Cause == EVerseFractureCause::Breach)
+ {
+ return Verse::Destruction::FractureLoudness(EVerseFractureNoise::Breach);
+ }
+ if (Material == EVersePenetrationMaterial::Glass)
+ {
+ return Verse::Destruction::FractureLoudness(EVerseFractureNoise::Glass);
+ }
+ if (Material == EVersePenetrationMaterial::CeilingPanel)
+ {
+ return Verse::Destruction::FractureLoudness(EVerseFractureNoise::Tile);
+ }
+ return Verse::Destruction::FractureLoudness(EVerseFractureNoise::WallBreak);
+ default:
+ return 0.f;
+ }
+ }
+
+ FName DestructionCueFor(EVersePenetrationMaterial Material)
+ {
+ switch (Material)
+ {
+ case EVersePenetrationMaterial::ContainerWall: return TEXT("dst_container_wall");
+ case EVersePenetrationMaterial::Glass: return TEXT("dst_glass_pane");
+ case EVersePenetrationMaterial::CladdingPanel: return TEXT("dst_cladding_wall");
+ case EVersePenetrationMaterial::CatwalkGrating: return TEXT("dst_catwalk_segment");
+ case EVersePenetrationMaterial::CeilingPanel: return TEXT("dst_ceiling_panel");
+ default: return TEXT("dst_wall_panel");
+ }
+ }
+
+ FName SettleCueFor(EVersePenetrationMaterial Material)
+ {
+ switch (Material)
+ {
+ case EVersePenetrationMaterial::Glass: return TEXT("dst_settle_glass");
+ case EVersePenetrationMaterial::CladdingPanel:
+ case EVersePenetrationMaterial::CeilingPanel:
+ case EVersePenetrationMaterial::Concrete: return TEXT("dst_settle_dust");
+ default: return TEXT("dst_settle_metal");
+ }
+ }
+
+ FName ImpactCueFor(EVersePenetrationMaterial Material)
+ {
+ switch (Material)
+ {
+ case EVersePenetrationMaterial::SheetMetal: return TEXT("imp_sheet_metal");
+ case EVersePenetrationMaterial::ContainerWall: return TEXT("imp_container_wall");
+ case EVersePenetrationMaterial::Glass: return TEXT("imp_glass");
+ case EVersePenetrationMaterial::CladdingPanel: return TEXT("imp_cladding_panel");
+ case EVersePenetrationMaterial::CatwalkGrating: return TEXT("imp_catwalk_grating");
+ case EVersePenetrationMaterial::CeilingPanel: return TEXT("imp_ceiling_panel");
+ case EVersePenetrationMaterial::Concrete: return TEXT("imp_concrete");
+ case EVersePenetrationMaterial::ArmorSteel: return TEXT("imp_armor_steel");
+ default: return TEXT("imp_concrete");
+ }
+ }
+
+ bool BoltClosestApproach(const FVector& Origin, const FVector& Direction, const FVector& Listener,
+ float BoltSpeedMps, float& OutDistanceM, float& OutTimeS, FVector& OutPoint)
+ {
+ const FVector Dir = Direction.GetSafeNormal();
+ const double AlongCm = FVector::DotProduct(Listener - Origin, Dir);
+ if (AlongCm <= 0.0 || Dir.IsNearlyZero())
+ {
+ return false;
+ }
+ OutPoint = Origin + Dir * AlongCm;
+ OutDistanceM = float(FVector::Dist(Listener, OutPoint) / 100.0);
+ OutTimeS = float(AlongCm / 100.0 / FMath::Max(1.f, BoltSpeedMps));
+ return true;
+ }
+
+ FVerseOcclusion OcclusionFromHits(TConstArrayView<FVersePenetrationHit> Hits, const FVerseAudioMixSettings& Mix)
+ {
+ FVerseOcclusion Result;
+ Result.LowpassHz = Mix.OpenLowpassHz;
+ for (const FVersePenetrationHit& Hit : Hits)
+ {
+ const int32 Id = Hit.MaterialWireId;
+ Result.LossDb += Mix.OcclusionLossDb.IsValidIndex(Id) ? Mix.OcclusionLossDb[Id] : -12.f;
+ Result.LowpassHz = FMath::Min(Result.LowpassHz,
+ Mix.OcclusionLowpassHz.IsValidIndex(Id) ? Mix.OcclusionLowpassHz[Id] : 1500.f);
+ ++Result.Pieces;
+ }
+ Result.LossDb = FMath::Max(Result.LossDb, Mix.OcclusionMaxLossDb);
+ return Result;
+ }
+
+ FVerseOcclusion TraceOcclusion(const IVersePenetrationQuery* Query, const FVector& Listener,
+ const FVector& Source, const FVerseAudioMixSettings& Mix)
+ {
+ FVerseOcclusion Open;
+ Open.LowpassHz = Mix.OpenLowpassHz;
+ const FVector Delta = Source - Listener;
+ const double Dist = Delta.Size();
+ if (!Query || Dist < 1.0)
+ {
+ return Open;
+ }
+ // Power high enough that the trace reports every piece it enters (at most 3); damage 0: a query only.
+ const TArray<FVersePenetrationHit> Hits = Query->TraceBolt(Listener, Delta / Dist, float(Dist), 1.0e9f, 0.f, 0,
+ Verse::Destruction::MaxPenetrations);
+ return OcclusionFromHits(Hits, Mix);
+ }
+}
+
+FVerseVoiceBudget::FDecision FVerseVoiceBudget::Request(FName CueId, float Priority, int32 CueMaxVoices, double Now)
+{
+ Prune(Now);
+ FDecision Decision;
+ if (CueMaxVoices > 0 && NumOf(CueId) >= CueMaxVoices)
+ {
+ const FVerseVoice* Oldest = nullptr;
+ for (const FVerseVoice& Voice : Voices)
+ {
+ if (Voice.CueId == CueId && (!Oldest || Voice.StartTime < Oldest->StartTime))
+ {
+ Oldest = &Voice;
+ }
+ }
+ Decision.bAdmit = true;
+ Decision.StealHandle = Oldest ? Oldest->Handle : 0;
+ return Decision;
+ }
+ if (Voices.Num() < Max)
+ {
+ Decision.bAdmit = true;
+ return Decision;
+ }
+ const FVerseVoice* Victim = nullptr;
+ for (const FVerseVoice& Voice : Voices)
+ {
+ if (!Victim || Voice.Priority < Victim->Priority
+ || (Voice.Priority == Victim->Priority && Voice.StartTime < Victim->StartTime))
+ {
+ Victim = &Voice;
+ }
+ }
+ if (Victim && Victim->Priority <= Priority)
+ {
+ Decision.bAdmit = true;
+ Decision.StealHandle = Victim->Handle;
+ }
+ return Decision;
+}
+
+void FVerseVoiceBudget::Add(const FVerseVoice& Voice)
+{
+ Voices.Add(Voice);
+}
+
+void FVerseVoiceBudget::Remove(int32 Handle)
+{
+ Voices.RemoveAll([Handle](const FVerseVoice& Voice) { return Voice.Handle == Handle; });
+}
+
+void FVerseVoiceBudget::Prune(double Now)
+{
+ Voices.RemoveAll([Now](const FVerseVoice& Voice) { return Voice.EndTime >= 0.0 && Voice.EndTime <= Now; });
+}
+
+int32 FVerseVoiceBudget::NumOf(FName CueId) const
+{
+ int32 Count = 0;
+ for (const FVerseVoice& Voice : Voices)
+ {
+ Count += Voice.CueId == CueId ? 1 : 0;
+ }
+ return Count;
+}
+
+int32 FVerseVariantPicker::Pick(FName CueId, int32 Count)
+{
+ if (Count <= 1)
+ {
+ return 0;
+ }
+ const int32* LastPtr = Last.Find(CueId);
+ const int32 Prev = LastPtr ? *LastPtr : INDEX_NONE;
+ int32 Variant;
+ if (Prev == INDEX_NONE)
+ {
+ Variant = Stream.RandRange(0, Count - 1);
+ }
+ else
+ {
+ Variant = Stream.RandRange(0, Count - 2);
+ Variant += Variant >= Prev ? 1 : 0;
+ }
+ Last.Add(CueId, Variant);
+ return Variant;
+}
diff --git a/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioSubsystem.cpp b/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioSubsystem.cpp
new file mode 100644
index 0000000000..d4a7fc947f
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Audio/VerseAudioSubsystem.cpp
@@ -0,0 +1,927 @@
+#include "Audio/VerseAudioSubsystem.h"
+
+#include "Audio/VerseAudioCueSet.h"
+#include "Destruction/VerseDestructionInterfaces.h"
+#include "Engine/Engine.h"
+#include "Engine/World.h"
+#include "Events/VerseEventHub.h"
+#include "GameFramework/GameStateBase.h"
+#include "GameFramework/Pawn.h"
+#include "GameFramework/PlayerController.h"
+#include "GameFramework/PlayerState.h"
+#include "GameplayTagContainer.h"
+#include "Noise/VerseAudibilityTable.h"
+#include "Sound/SoundAttenuation.h"
+#include "Sound/SoundBase.h"
+#include "Stubs/VerseNullStubs.h"
+#include "VerseEngineAudioSink.h"
+#include "VerseLog.h"
+
+namespace
+{
+ enum class ELoopKind : int64
+ {
+ Drone = 1,
+ Bulwark = 2,
+ Ambience = 3,
+ CrewBed = 4,
+ Lift = 5,
+ };
+
+ int64 LoopKey(ELoopKind Kind, int32 Id)
+ {
+ return (int64(Kind) << 32) | int64(uint32(Id));
+ }
+
+ FName AmbienceCue(EVerseAmbience Ambience)
+ {
+ switch (Ambience)
+ {
+ case EVerseAmbience::Bridge: return TEXT("amb_bridge");
+ case EVerseAmbience::Ops: return TEXT("amb_ops");
+ case EVerseAmbience::Engineering: return TEXT("amb_engineering");
+ case EVerseAmbience::Hangar: return TEXT("amb_hangar");
+ default: return NAME_None;
+ }
+ }
+
+ FName FootstepCue(EVerseFootSurface Surface)
+ {
+ switch (Surface)
+ {
+ case EVerseFootSurface::Grating: return TEXT("fs_grating");
+ case EVerseFootSurface::Concrete: return TEXT("fs_concrete");
+ case EVerseFootSurface::Rubble: return TEXT("fs_rubble");
+ default: return TEXT("fs_metal");
+ }
+ }
+
+ FName GaitNoise(EVerseGait Gait)
+ {
+ switch (Gait)
+ {
+ case EVerseGait::Walk: return TEXT("Noise.Footstep.Walk");
+ case EVerseGait::Run: return TEXT("Noise.Footstep.Run");
+ case EVerseGait::Sprint: return TEXT("Noise.Footstep.Sprint");
+ default: return NAME_None; // crouch walk, prone crawl: no noise (bot.md 3.2)
+ }
+ }
+
+ float GaitGain(EVerseGait Gait)
+ {
+ switch (Gait)
+ {
+ case EVerseGait::CrouchWalk: return 0.35f;
+ case EVerseGait::ProneCrawl: return 0.25f;
+ case EVerseGait::Walk: return 0.6f;
+ case EVerseGait::Run: return 0.85f;
+ default: return 1.f;
+ }
+ }
+
+ FVector PieceLocalToWorld(const FBox& Bounds, const int16 LocalMm[3])
+ {
+ // The fracture location is piece-local in mm; the piece bounds centre is a good anchor for sound.
+ return Bounds.IsValid ? Bounds.GetCenter() : FVector(LocalMm[0], LocalMm[1], LocalMm[2]) * 0.1;
+ }
+}
+
+UVerseAudioSubsystem* UVerseAudioSubsystem::Get(const UObject* WorldContextObject)
+{
+ if (!WorldContextObject || !GEngine)
+ {
+ return nullptr;
+ }
+ const UWorld* World = GEngine->GetWorldFromContextObject(WorldContextObject, EGetWorldErrorMode::ReturnNull);
+ return World ? World->GetSubsystem<UVerseAudioSubsystem>() : nullptr;
+}
+
+bool UVerseAudioSubsystem::ShouldCreateSubsystem(UObject* Outer) const
+{
+ const UWorld* World = Cast<UWorld>(Outer);
+ return World && (World->WorldType == EWorldType::Game || World->WorldType == EWorldType::PIE)
+ && Super::ShouldCreateSubsystem(Outer);
+}
+
+void UVerseAudioSubsystem::Initialize(FSubsystemCollectionBase& Collection)
+{
+ Super::Initialize(Collection);
+ UVerseEventHub* EventHub = Collection.InitializeDependency<UVerseEventHub>();
+ Hub = EventHub;
+ if (EventHub)
+ {
+ EventHub->OnFire.AddUObject(this, &UVerseAudioSubsystem::HandleFire);
+ EventHub->OnHit.AddUObject(this, &UVerseAudioSubsystem::HandleHit);
+ EventHub->OnPenetration.AddUObject(this, &UVerseAudioSubsystem::HandlePenetration);
+ EventHub->OnReload.AddUObject(this, &UVerseAudioSubsystem::HandleReload);
+ EventHub->OnGadget.AddUObject(this, &UVerseAudioSubsystem::HandleGadget);
+ EventHub->OnFracture.AddUObject(this, &UVerseAudioSubsystem::HandleFracture);
+ EventHub->OnFinisher.AddUObject(this, &UVerseAudioSubsystem::HandleFinisher);
+ }
+ SetSink(nullptr);
+ SetCueSet(nullptr);
+}
+
+void UVerseAudioSubsystem::Deinitialize()
+{
+ if (UVerseEventHub* EventHub = Hub.Get())
+ {
+ EventHub->OnFire.RemoveAll(this);
+ EventHub->OnHit.RemoveAll(this);
+ EventHub->OnPenetration.RemoveAll(this);
+ EventHub->OnReload.RemoveAll(this);
+ EventHub->OnGadget.RemoveAll(this);
+ EventHub->OnFracture.RemoveAll(this);
+ EventHub->OnFinisher.RemoveAll(this);
+ }
+ if (Sink)
+ {
+ Sink->Shutdown();
+ Sink.Reset();
+ }
+ Loops.Reset();
+ Pending.Reset();
+ Budget.Reset();
+ Super::Deinitialize();
+}
+
+TStatId UVerseAudioSubsystem::GetStatId() const
+{
+ RETURN_QUICK_DECLARE_CYCLE_STAT(UVerseAudioSubsystem, STATGROUP_Tickables);
+}
+
+void UVerseAudioSubsystem::SetCueSet(UVerseAudioCueSet* InCueSet)
+{
+ CueSet = InCueSet;
+ if (!CueSet)
+ {
+ CueSet = LoadObject<UVerseAudioCueSet>(nullptr, UVerseAudioCueSet::DefaultAssetPath, nullptr, LOAD_NoWarn | LOAD_Quiet);
+ }
+ if (!CueSet)
+ {
+ CueSet = NewObject<UVerseAudioCueSet>(this, NAME_None, RF_Transient); // no sounds; rules still apply
+ }
+ CueSet->RebuildIndex();
+ Budget.Max = FMath::Max(1, CueSet->Mix.MaxVoices);
+ AttenuationCache.Reset();
+ RouteCueSet();
+ ApplyMasterVolume();
+}
+
+void UVerseAudioSubsystem::SetSink(TSharedPtr<IVerseAudioSink> InSink)
+{
+ if (Sink)
+ {
+ Sink->Shutdown();
+ }
+ Sink = InSink ? InSink : MakeShared<FVerseEngineAudioSink>();
+ const FVerseAudioMixSettings Mix = CueSet ? CueSet->Mix : FVerseAudioMixSettings();
+ Sink->Initialize(GetWorld(), Mix);
+ Budget.Reset();
+ Loops.Reset();
+ RouteCueSet();
+ ApplyMasterVolume();
+}
+
+void UVerseAudioSubsystem::RouteCueSet()
+{
+ if (!Sink || !CueSet)
+ {
+ return;
+ }
+ for (const FVerseAudioCue& Cue : CueSet->Cues)
+ {
+ for (USoundBase* Sound : Cue.Variants)
+ {
+ Sink->Route(Sound, Cue.Bus);
+ }
+ }
+}
+
+int32 UVerseAudioSubsystem::GetLocalPlayerId() const
+{
+ if (LocalPlayerIdOverride != INDEX_NONE)
+ {
+ return LocalPlayerIdOverride;
+ }
+ if (const UWorld* World = GetWorld())
+ {
+ if (const APlayerController* PC = World->GetFirstPlayerController())
+ {
+ if (PC->IsLocalController() && PC->PlayerState)
+ {
+ return PC->PlayerState->GetPlayerId();
+ }
+ }
+ }
+ return INDEX_NONE;
+}
+
+FVector UVerseAudioSubsystem::GetListenerLocation() const
+{
+ if (ListenerOverride.IsSet())
+ {
+ return ListenerOverride.GetValue();
+ }
+ if (const UWorld* World = GetWorld())
+ {
+ if (const APlayerController* PC = World->GetFirstPlayerController())
+ {
+ FVector Location, Front, Right;
+ PC->GetAudioListenerPosition(Location, Front, Right);
+ return Location;
+ }
+ }
+ return FVector::ZeroVector;
+}
+
+bool UVerseAudioSubsystem::IsLocal(int32 PlayerId) const
+{
+ const int32 Local = GetLocalPlayerId();
+ return Local != INDEX_NONE && PlayerId == Local;
+}
+
+const IVersePieceQuery& UVerseAudioSubsystem::Pieces() const
+{
+ return PieceQuery ? *PieceQuery : *GetDefault<UVerseNullPieceQuery>();
+}
+
+// ---------------------------------------------------------------------------------------- lifecycle
+
+void UVerseAudioSubsystem::SetDormant(bool bInDormant)
+{
+ bDormant = bInDormant;
+ if (bDormant)
+ {
+ FadeLevel = 0.f; // A19.5: muted at once, never later than the next audio buffer
+ }
+ ApplyMasterVolume();
+}
+
+void UVerseAudioSubsystem::SetUiSoundEnabled(bool bEnabled)
+{
+ bUiSoundEnabled = bEnabled;
+ ApplyMasterVolume();
+}
+
+void UVerseAudioSubsystem::SetUserVolume(float Volume)
+{
+ UserVolume = FMath::Clamp(Volume, 0.f, 1.f);
+ ApplyMasterVolume();
+}
+
+void UVerseAudioSubsystem::ApplyMasterVolume()
+{
+ const bool bMuted = bDormant || !bUiSoundEnabled;
+ MasterVolume = bMuted ? 0.f : UserVolume * FadeLevel;
+ if (Sink)
+ {
+ Sink->SetMasterVolume(MasterVolume);
+ }
+}
+
+void UVerseAudioSubsystem::Tick(float DeltaTime)
+{
+ Super::Tick(DeltaTime);
+ Now += DeltaTime;
+
+ if (!bDormant && FadeLevel < 1.f)
+ {
+ const float FadeS = CueSet ? FMath::Max(0.001f, CueSet->Mix.DormantUnmuteFadeS) : 0.15f;
+ FadeLevel = FMath::Min(1.f, FadeLevel + DeltaTime / FadeS);
+ ApplyMasterVolume();
+ }
+
+ if (Pending.Num() > 0)
+ {
+ TArray<FPending> Due;
+ for (int32 I = Pending.Num() - 1; I >= 0; --I)
+ {
+ if (Pending[I].At <= Now)
+ {
+ Due.Add(Pending[I]);
+ Pending.RemoveAtSwap(I);
+ }
+ }
+ Due.Sort([](const FPending& A, const FPending& B) { return A.At < B.At; });
+ for (const FPending& P : Due)
+ {
+ PlayCue(P.CueId, P.Params);
+ }
+ }
+
+ Budget.Prune(Now);
+
+ // Loops: follow the listener's occlusion (a hole opened in a wall opens the sound, 19.7).
+ if (CueSet && Sink)
+ {
+ const FVector Listener = GetListenerLocation();
+ for (TPair<int64, FLoop>& Pair : Loops)
+ {
+ FLoop& Loop = Pair.Value;
+ const FVerseAudioCue* Cue = CueSet->FindCue(Loop.CueId);
+ if (!Cue || !Cue->bSpatial || Now < Loop.NextOcclusionAt)
+ {
+ continue;
+ }
+ Loop.NextOcclusionAt = Now + CueSet->Mix.OcclusionRefreshS;
+ const FVerseOcclusion Occ = Verse::Audio::TraceOcclusion(PenetrationQuery, Listener, Loop.Params.Location, CueSet->Mix);
+ Sink->SetVoiceOcclusion(Loop.Handle, Occ.Gain(), Occ.LowpassHz);
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------- core play
+
+float UVerseAudioSubsystem::RangeForNoise(FName NoiseTag, float Loudness) const
+{
+ const FGameplayTag Tag = Verse::Audio::NoiseTagByName(NoiseTag);
+ if (!Tag.IsValid() || !CueSet)
+ {
+ return 0.f;
+ }
+ return CueSet->GetAudibility().GetAudibleRangeM(Tag, Loudness);
+}
+
+void UVerseAudioSubsystem::MakeNoiseAttenuation(FName NoiseTag, float Loudness, FSoundAttenuationSettings& Out) const
+{
+ Verse::Audio::BuildAttenuation(RangeForNoise(NoiseTag, Loudness), CueSet ? CueSet->Mix : FVerseAudioMixSettings(), Out);
+}
+
+USoundAttenuation* UVerseAudioSubsystem::AttenuationFor(float RangeM)
+{
+ const int32 Key = FMath::RoundToInt(FMath::Min(RangeM, UVerseAudibilityTable::WholeArenaRangeM) * 10.f);
+ if (TObjectPtr<USoundAttenuation>* Found = AttenuationCache.Find(Key))
+ {
+ return *Found;
+ }
+ USoundAttenuation* Attenuation = NewObject<USoundAttenuation>(this, NAME_None, RF_Transient);
+ Verse::Audio::BuildAttenuation(RangeM, CueSet->Mix, Attenuation->Attenuation);
+ AttenuationCache.Add(Key, Attenuation);
+ return Attenuation;
+}
+
+int32 UVerseAudioSubsystem::PlayCue(FName CueId, const FPlayParams& Params, float* OutBaseVolume)
+{
+ if (!CueSet || !Sink)
+ {
+ return 0;
+ }
+ const FVerseAudioCue* Cue = CueSet->FindCue(CueId);
+ if (!Cue)
+ {
+ UE_LOG(LogVerseUI, Verbose, TEXT("Verse audio: no cue %s"), *CueId.ToString());
+ return 0;
+ }
+ const FVerseAudioMixSettings& Mix = CueSet->Mix;
+ const bool bOwn = Params.SourceId != INDEX_NONE && IsLocal(Params.SourceId);
+ const bool bSpatial = Cue->bSpatial && !bOwn;
+
+ float RangeM = 0.f;
+ if (bSpatial)
+ {
+ if (Params.RangeOverrideM > 0.f)
+ {
+ RangeM = Params.RangeOverrideM;
+ }
+ else if (!Cue->NoiseTag.IsNone())
+ {
+ RangeM = RangeForNoise(Cue->NoiseTag, Params.Loudness);
+ }
+ else
+ {
+ RangeM = Cue->RangeM > 0.f ? Cue->RangeM : 50.f;
+ }
+ }
+
+ const FVector Listener = GetListenerLocation();
+ FVerseOcclusion Occ;
+ Occ.LowpassHz = Mix.OpenLowpassHz;
+ if (bSpatial)
+ {
+ const float DistM = float(FVector::Dist(Listener, Params.Location) / 100.0);
+ if (RangeM <= 0.f || DistM >= RangeM)
+ {
+ // Out of range: the bot would not hear it either (F6). Nothing plays, no voice is used.
+ Log(CueId, INDEX_NONE, Params, bSpatial, RangeM, 0.f, 1.f, Occ, false, false);
+ return 0;
+ }
+ Occ = Verse::Audio::TraceOcclusion(PenetrationQuery, Listener, Params.Location, Mix);
+ }
+
+ const int32 VariantCount = Cue->Variants.Num();
+ const int32 Variant = Picker.Pick(CueId, FMath::Max(1, VariantCount));
+ USoundBase* Sound = Cue->Variants.IsValidIndex(Variant) ? Cue->Variants[Variant].Get() : nullptr;
+ const float Pitch = Picker.Range(Cue->Pitch);
+ const float BusDb = Mix.BusGainDb.IsValidIndex(int32(Cue->Bus)) ? Mix.BusGainDb[int32(Cue->Bus)] : 0.f;
+ const float BaseVolume = Picker.Range(Cue->Volume) * Params.Gain * Verse::Audio::DbToGain(BusDb + Mix.MasterGainDb);
+ const float Volume = BaseVolume * Occ.Gain();
+ if (OutBaseVolume)
+ {
+ *OutBaseVolume = BaseVolume;
+ }
+
+ const FVerseVoiceBudget::FDecision Decision = Budget.Request(CueId, Cue->Priority, Cue->MaxVoices, Now);
+ if (!Decision.bAdmit)
+ {
+ Log(CueId, Variant, Params, bSpatial, RangeM, Volume, Pitch, Occ, false, false);
+ return 0;
+ }
+ if (Decision.StealHandle != 0)
+ {
+ StopVoice(Decision.StealHandle, 0.03f);
+ }
+
+ const int32 Handle = NextHandle++;
+ const float Duration = Sound ? Sound->GetDuration() : 1.f;
+ const bool bLoop = Cue->bLoop || (Sound && Sound->IsLooping());
+ FVerseVoice Voice;
+ Voice.Handle = Handle;
+ Voice.CueId = CueId;
+ Voice.Priority = Cue->Priority;
+ Voice.StartTime = Now;
+ Voice.EndTime = bLoop ? -1.0 : Now + Duration / FMath::Max(0.1f, Pitch);
+ Budget.Add(Voice);
+ PeakVoices = FMath::Max(PeakVoices, Budget.Num());
+
+ FVerseAudioPlayRequest Request;
+ Request.CueId = CueId;
+ Request.Sound = Sound;
+ Request.bSpatial = bSpatial;
+ Request.Location = Params.Location;
+ Request.Attenuation = bSpatial ? AttenuationFor(RangeM) : nullptr;
+ Request.Volume = BaseVolume; // the multiplier; occlusion rides on the fader
+ Request.Fader = Occ.Gain();
+ Request.Pitch = Pitch;
+ Request.LowpassHz = Occ.LowpassHz;
+ Sink->Play(Handle, Request);
+ Log(CueId, Variant, Params, bSpatial, RangeM, Volume, Pitch, Occ, true, Decision.StealHandle != 0);
+ return Handle;
+}
+
+void UVerseAudioSubsystem::StopVoice(int32 Handle, float FadeOutS)
+{
+ if (Handle == 0)
+ {
+ return;
+ }
+ Budget.Remove(Handle);
+ if (Sink)
+ {
+ Sink->Stop(Handle, FadeOutS);
+ }
+}
+
+void UVerseAudioSubsystem::StartLoop(int64 Key, FName CueId, const FPlayParams& Params)
+{
+ StopLoop(Key, 0.1f);
+ float BaseVolume = 1.f;
+ const int32 Handle = PlayCue(CueId, Params, &BaseVolume);
+ if (Handle == 0)
+ {
+ return;
+ }
+ FLoop Loop;
+ Loop.Handle = Handle;
+ Loop.CueId = CueId;
+ Loop.Params = Params;
+ Loop.NextOcclusionAt = Now + (CueSet ? CueSet->Mix.OcclusionRefreshS : 0.25f);
+ Loop.BaseVolume = BaseVolume;
+ Loops.Add(Key, Loop);
+}
+
+void UVerseAudioSubsystem::StopLoop(int64 Key, float FadeOutS)
+{
+ FLoop Loop;
+ if (Loops.RemoveAndCopyValue(Key, Loop))
+ {
+ StopVoice(Loop.Handle, FadeOutS);
+ FPlayParams None;
+ FVerseOcclusion Occ;
+ Log(Loop.CueId, INDEX_NONE, None, false, 0.f, 0.f, 1.f, Occ, true, false, true);
+ }
+}
+
+void UVerseAudioSubsystem::Log(FName CueId, int32 Variant, const FPlayParams& Params, bool bSpatial, float RangeM, float Volume,
+ float Pitch, const FVerseOcclusion& Occlusion, bool bAdmitted, bool bStole, bool bStop)
+{
+ if (EventLog.Num() >= MaxLogEntries)
+ {
+ EventLog.RemoveAt(0, MaxLogEntries / 4);
+ }
+ FVerseAudioLogEntry& Entry = EventLog.AddDefaulted_GetRef();
+ Entry.CueId = CueId;
+ Entry.Variant = Variant;
+ Entry.Frame = int64(GFrameCounter);
+ Entry.Time = Now;
+ Entry.Location = Params.Location;
+ Entry.bSpatial = bSpatial;
+ Entry.RangeM = RangeM;
+ Entry.Volume = Volume;
+ Entry.Pitch = Pitch;
+ Entry.OcclusionLossDb = Occlusion.LossDb;
+ Entry.LowpassHz = Occlusion.LowpassHz;
+ Entry.bAdmitted = bAdmitted;
+ Entry.bStole = bStole;
+ Entry.bStop = bStop;
+}
+
+FName UVerseAudioSubsystem::WeaponCue(FName WeaponId, const TCHAR* Prefix, const TCHAR* Suffix) const
+{
+ const FName Profile = CueSet ? CueSet->WeaponProfileFor(WeaponId) : FName(TEXT("rifle"));
+ return FName(*FString::Printf(TEXT("%s_%s%s"), Prefix, *Profile.ToString(), Suffix));
+}
+
+// ---------------------------------------------------------------------------------------- hub events
+
+void UVerseAudioSubsystem::HandleFire(const FVerseFireEvent& Event)
+{
+ // A19.2: the first layer is issued in the same frame the shot is published.
+ FPlayParams Params;
+ Params.Location = Event.Origin;
+ Params.SourceId = Event.ShooterId;
+ if (IsLocal(Event.ShooterId))
+ {
+ PlayCue(WeaponCue(Event.WeaponId, TEXT("wpn"), TEXT("_fp_body")), Params);
+ PlayCue(WeaponCue(Event.WeaponId, TEXT("wpn"), TEXT("_fp_mech")), Params);
+ PlayCue(WeaponCue(Event.WeaponId, TEXT("wpn"), TEXT("_tail")), Params);
+ return;
+ }
+ const FVector Listener = GetListenerLocation();
+ const float DistM = float(FVector::Dist(Listener, FVector(Event.Origin)) / 100.0);
+ const float Far = Verse::Audio::ShotFarWeight(DistM, CueSet->Mix);
+ if (Far < 0.999f)
+ {
+ FPlayParams Near = Params;
+ Near.Gain = 1.f - Far;
+ PlayCue(WeaponCue(Event.WeaponId, TEXT("wpn"), TEXT("_tp_near")), Near);
+ }
+ if (Far > 0.001f)
+ {
+ FPlayParams FarParams = Params;
+ FarParams.Gain = Far;
+ PlayCue(WeaponCue(Event.WeaponId, TEXT("wpn"), TEXT("_tp_far")), FarParams);
+ }
+ PlayCue(WeaponCue(Event.WeaponId, TEXT("wpn"), TEXT("_tp_tail")), Params);
+
+ float PassM = 0.f, TimeS = 0.f;
+ FVector Point;
+ if (Verse::Audio::BoltClosestApproach(Event.Origin, Event.Direction, Listener, CueSet->Mix.BoltSpeedMps, PassM, TimeS, Point)
+ && PassM <= CueSet->Mix.FlybyRadiusM)
+ {
+ FPending Flyby;
+ Flyby.At = Now + TimeS;
+ Flyby.CueId = TEXT("bolt_flyby");
+ Flyby.Params.Location = Point;
+ Flyby.Params.SourceId = INDEX_NONE; // the bolt, not the shooter, makes this sound
+ Pending.Add(Flyby);
+ }
+}
+
+void UVerseAudioSubsystem::HandleHit(const FVerseHitEvent& Event)
+{
+ if (IsLocal(Event.VictimId))
+ {
+ FPlayParams Hurt;
+ Hurt.SourceId = Event.VictimId;
+ PlayCue(TEXT("imp_hurt"), Hurt);
+ return;
+ }
+ FPlayParams Params;
+ Params.Location = Event.ImpactWorld;
+ Params.SourceId = INDEX_NONE;
+ if (IsLocal(Event.InstigatorId))
+ {
+ // The shooter's own hit feedback; the bot gets its own hits as hit confirms too.
+ const FVerseAudioCue* Cue = CueSet->FindCue(TEXT("imp_flesh"));
+ Params.RangeOverrideM = Cue ? Cue->RangeM : 0.f;
+ }
+ PlayCue(Event.Source == EVerseDamageSource::Melee ? FName(TEXT("mel_knife_hit")) : FName(TEXT("imp_flesh")), Params);
+}
+
+void UVerseAudioSubsystem::HandlePenetration(const FVersePenetrationEvent& Event)
+{
+ const EVersePenetrationMaterial Material = EVersePenetrationMaterial(Event.MaterialWireId);
+ const FName Impact = Verse::Audio::ImpactCueFor(Material);
+ FPlayParams Params;
+ Params.Location = Event.Entry;
+ if (IsLocal(Event.ShooterId))
+ {
+ const FVerseAudioCue* Cue = CueSet->FindCue(Impact);
+ Params.RangeOverrideM = Cue ? Cue->RangeM : 0.f;
+ }
+ PlayCue(Impact, Params);
+ if (Event.bPassed)
+ {
+ FPlayParams Exit = Params;
+ Exit.Location = Event.Exit;
+ PlayCue(TEXT("imp_penetration_exit"), Exit);
+ }
+}
+
+void UVerseAudioSubsystem::PlayImpact(int32 ShooterId, EVersePenetrationMaterial Material, const FVector& Location)
+{
+ const FName Impact = Verse::Audio::ImpactCueFor(Material);
+ FPlayParams Params;
+ Params.Location = Location;
+ if (IsLocal(ShooterId))
+ {
+ const FVerseAudioCue* Cue = CueSet->FindCue(Impact);
+ Params.RangeOverrideM = Cue ? Cue->RangeM : 0.f;
+ }
+ PlayCue(Impact, Params);
+}
+
+TOptional<FVector> UVerseAudioSubsystem::FindPlayerLocation(int32 PlayerId) const
+{
+ if (PlayerLocationResolver)
+ {
+ return PlayerLocationResolver(PlayerId);
+ }
+ if (const UWorld* World = GetWorld())
+ {
+ if (const AGameStateBase* GameState = World->GetGameState())
+ {
+ for (const APlayerState* State : GameState->PlayerArray)
+ {
+ if (State && State->GetPlayerId() == PlayerId)
+ {
+ if (const APawn* Pawn = State->GetPawn())
+ {
+ return Pawn->GetActorLocation();
+ }
+ break;
+ }
+ }
+ }
+ }
+ return {};
+}
+
+void UVerseAudioSubsystem::HandleReload(const FVerseReloadEvent& Event)
+{
+ const FName CueId = WeaponCue(Event.WeaponId, TEXT("rld"), Event.bTactical ? TEXT("_tactical") : TEXT("_empty"));
+ int32 Existing = 0;
+ if (ReloadVoices.RemoveAndCopyValue(Event.PlayerId, Existing))
+ {
+ // A new reload or a cancel ends the player's previous reload voice; it is never left running.
+ StopVoice(Existing, 0.08f);
+ if (Event.bCancelled)
+ {
+ FPlayParams None;
+ FVerseOcclusion Occ;
+ Log(CueId, INDEX_NONE, None, false, 0.f, 0.f, 1.f, Occ, true, false, true);
+ }
+ }
+ if (Event.bCancelled)
+ {
+ return;
+ }
+ FPlayParams Params;
+ Params.SourceId = Event.PlayerId;
+ if (!IsLocal(Event.PlayerId))
+ {
+ // Someone else's reload (the listen-server host gets the bot's server-raised event): it
+ // plays at the reloading pawn with the Noise.Reload range, the range the bot hears the
+ // person's reloads at (F6). Without a known location nothing plays, never at the origin.
+ const TOptional<FVector> Where = FindPlayerLocation(Event.PlayerId);
+ if (!Where.IsSet())
+ {
+ return;
+ }
+ Params.Location = Where.GetValue();
+ }
+ const int32 Handle = PlayCue(CueId, Params);
+ if (Handle != 0)
+ {
+ ReloadVoices.Add(Event.PlayerId, Handle);
+ }
+}
+
+void UVerseAudioSubsystem::HandleGadget(const FVerseGadgetEvent& Event)
+{
+ const FString Id = Event.GadgetId.ToString();
+ const bool bBulwark = Id.Contains(TEXT("bulwark"), ESearchCase::IgnoreCase);
+ FPlayParams Params;
+ Params.Location = Event.Location;
+ Params.SourceId = INDEX_NONE; // gadgets are world objects: placed and attenuated for everyone
+ const int64 Key = LoopKey(ELoopKind::Bulwark, Event.OwnerId);
+ switch (Event.Kind)
+ {
+ case EVerseGadgetEventKind::Deploy:
+ if (bBulwark)
+ {
+ PlayCue(TEXT("gad_bulwark_deploy"), Params);
+ StartLoop(Key, TEXT("gad_bulwark_hum"), Params);
+ }
+ break;
+ case EVerseGadgetEventKind::Destroyed:
+ if (bBulwark)
+ {
+ StopLoop(Key, 0.05f);
+ PlayCue(TEXT("gad_bulwark_destroyed"), Params);
+ }
+ break;
+ case EVerseGadgetEventKind::Expired:
+ if (bBulwark)
+ {
+ StopLoop(Key, 0.6f);
+ }
+ break;
+ case EVerseGadgetEventKind::Plant:
+ PlayCue(TEXT("gad_breach_plant"), Params);
+ break;
+ case EVerseGadgetEventKind::Detonate:
+ PlayCue(TEXT("gad_breach_detonate"), Params);
+ break;
+ }
+}
+
+void UVerseAudioSubsystem::HandleFracture(const FVerseFractureEvent& Event)
+{
+ if (Event.PieceIndex == Verse::Destruction::AllPieces)
+ {
+ return; // arena reset: silent
+ }
+ const IVersePieceQuery& Query = Pieces();
+ const EVersePenetrationMaterial Material = Query.GetPieceMaterial(Event.PieceIndex);
+ const float Loudness = Verse::Audio::FractureLoudness(Event.FromState, Event.ToState, Event.Cause, Material);
+ if (Loudness <= 0.f)
+ {
+ return;
+ }
+ FPlayParams Params;
+ Params.Location = PieceLocalToWorld(Query.GetPieceBounds(Event.PieceIndex), Event.Location);
+ Params.Loudness = Loudness;
+ const bool bBreak = Event.ToState == EVersePieceState::Breached || Event.ToState == EVersePieceState::Destroyed;
+ if (!bBreak)
+ {
+ PlayCue(TEXT("dst_hole"), Params);
+ return;
+ }
+ PlayCue(Verse::Audio::DestructionCueFor(Material), Params);
+ FPending Settle;
+ const FVerseAudioMixSettings& Mix = CueSet->Mix;
+ Settle.At = Now + Mix.SettleDelayMinS + (Mix.SettleDelayMaxS - Mix.SettleDelayMinS) * float(Event.Seed % 1000) / 1000.f;
+ Settle.CueId = Verse::Audio::SettleCueFor(Material);
+ Settle.Params = Params;
+ Pending.Add(Settle);
+}
+
+void UVerseAudioSubsystem::HandleFinisher(const FVerseFinisherEvent& Event)
+{
+ FName Cue;
+ switch (Event.Phase)
+ {
+ case EVerseFinisherPhase::Takedown: Cue = TEXT("fin_takedown"); break;
+ case EVerseFinisherPhase::Struggle: Cue = TEXT("fin_struggle"); break;
+ case EVerseFinisherPhase::Kill: Cue = TEXT("fin_kill"); break;
+ default: return;
+ }
+ FPlayParams Params;
+ Params.Location = Event.WarpTarget.GetLocation();
+ // Attacker and victim hear it at the listener; everyone else at the warp point with Noise.Finisher.
+ Params.SourceId = IsLocal(Event.VictimId) ? Event.VictimId : Event.AttackerId;
+ PlayCue(Cue, Params);
+}
+
+// ---------------------------------------------------------------------------------------- calls
+
+void UVerseAudioSubsystem::PlayFootstep(int32 PlayerId, EVerseFootSurface Surface, EVerseGait Gait, const FVector& Location)
+{
+ const bool bOwn = IsLocal(PlayerId);
+ const FName Noise = GaitNoise(Gait);
+ if (!bOwn && Noise.IsNone())
+ {
+ return; // crouched or prone steps of others: silent, as for the bot (F6)
+ }
+ FPlayParams Params;
+ Params.Location = Location;
+ Params.SourceId = PlayerId;
+ Params.Gain = GaitGain(Gait);
+ const float RangeM = bOwn ? 0.f : RangeForNoise(Noise, 1.f);
+ Params.RangeOverrideM = RangeM;
+ FName Cue = FootstepCue(Surface);
+ if (Surface == EVerseFootSurface::Metal && (Picker.Range(FVector2D(0.0, 1.0)) < 0.5f))
+ {
+ Cue = TEXT("fs_metal_boots"); // recorded boots and synthesised steps alternate on deck plating
+ }
+ PlayCue(Cue, Params);
+}
+
+void UVerseAudioSubsystem::PlayFoley(int32 PlayerId, EVerseFoley Foley, const FVector& Location)
+{
+ FName Cue;
+ switch (Foley)
+ {
+ case EVerseFoley::Slide: Cue = TEXT("fol_slide"); break;
+ case EVerseFoley::Land: Cue = TEXT("fol_land"); break;
+ case EVerseFoley::Mantle: Cue = TEXT("fol_mantle"); break;
+ case EVerseFoley::LeanIn:
+ case EVerseFoley::LeanOut: Cue = TEXT("fol_lean"); break;
+ case EVerseFoley::ProneDown: Cue = TEXT("fol_prone_down"); break;
+ case EVerseFoley::ProneUp: Cue = TEXT("fol_prone_up"); break;
+ }
+ const FVerseAudioCue* Data = CueSet->FindCue(Cue);
+ if (!IsLocal(PlayerId) && (!Data || !Data->bSpatial))
+ {
+ return; // lean and prone foley raise no noise: own player only
+ }
+ FPlayParams Params;
+ Params.Location = Location;
+ Params.SourceId = PlayerId;
+ PlayCue(Cue, Params);
+}
+
+void UVerseAudioSubsystem::PlayEquip(int32 PlayerId, FName WeaponId)
+{
+ if (!IsLocal(PlayerId))
+ {
+ return; // equip raises no noise
+ }
+ const FString Id = WeaponId.ToString();
+ FPlayParams Params;
+ Params.SourceId = PlayerId;
+ PlayCue(Id.Contains(TEXT("knife"), ESearchCase::IgnoreCase) ? FName(TEXT("eqp_knife")) : WeaponCue(WeaponId, TEXT("eqp"), TEXT("")),
+ Params);
+}
+
+void UVerseAudioSubsystem::PlayKnifeSwing(int32 PlayerId, const FVector& Location)
+{
+ FPlayParams Params;
+ Params.Location = Location;
+ Params.SourceId = PlayerId;
+ PlayCue(TEXT("mel_knife_swing"), Params);
+}
+
+void UVerseAudioSubsystem::StartDroneLoop(int32 DroneKey, bool bWelding, const FVector& Location)
+{
+ FPlayParams Params;
+ Params.Location = Location;
+ Params.Loudness = Verse::Destruction::DroneLoudness;
+ StartLoop(LoopKey(ELoopKind::Drone, DroneKey), bWelding ? FName(TEXT("drn_weld")) : FName(TEXT("drn_flight")), Params);
+}
+
+void UVerseAudioSubsystem::UpdateDroneLoop(int32 DroneKey, const FVector& Location)
+{
+ if (FLoop* Loop = Loops.Find(LoopKey(ELoopKind::Drone, DroneKey)))
+ {
+ Loop->Params.Location = Location;
+ if (Sink)
+ {
+ Sink->SetVoiceLocation(Loop->Handle, Location);
+ }
+ }
+}
+
+void UVerseAudioSubsystem::StopDroneLoop(int32 DroneKey)
+{
+ StopLoop(LoopKey(ELoopKind::Drone, DroneKey), 0.3f);
+}
+
+void UVerseAudioSubsystem::SetAmbience(EVerseAmbience Ambience)
+{
+ if (Ambience == CurrentAmbience)
+ {
+ return;
+ }
+ CurrentAmbience = Ambience;
+ const int64 Key = LoopKey(ELoopKind::Ambience, 0);
+ StopLoop(Key, 1.5f);
+ if (Ambience != EVerseAmbience::None)
+ {
+ StartLoop(Key, AmbienceCue(Ambience), FPlayParams());
+ }
+}
+
+void UVerseAudioSubsystem::SetCrewBed(bool bOn)
+{
+ const int64 Key = LoopKey(ELoopKind::CrewBed, 0);
+ if (bOn && !Loops.Contains(Key))
+ {
+ StartLoop(Key, TEXT("amb_crew_bed"), FPlayParams());
+ }
+ else if (!bOn)
+ {
+ StopLoop(Key, 1.f);
+ }
+}
+
+void UVerseAudioSubsystem::PlayUi(EVerseUiSound Sound)
+{
+ static const TCHAR* Names[] = {TEXT("ui_click"), TEXT("ui_hover"), TEXT("ui_confirm"), TEXT("ui_back"),
+ TEXT("ui_panel_open"), TEXT("ui_panel_close"), TEXT("ui_level_bell")};
+ PlayCue(Names[FMath::Clamp(int32(Sound), 0, int32(UE_ARRAY_COUNT(Names)) - 1)], FPlayParams());
+}
+
+void UVerseAudioSubsystem::PlayLift(EVerseLiftSound Sound)
+{
+ const int64 Key = LoopKey(ELoopKind::Lift, 0);
+ switch (Sound)
+ {
+ case EVerseLiftSound::DoorOpen: PlayCue(TEXT("lift_door_open"), FPlayParams()); break;
+ case EVerseLiftSound::DoorClose: PlayCue(TEXT("lift_door_close"), FPlayParams()); break;
+ case EVerseLiftSound::RideStart: StartLoop(Key, TEXT("lift_ride"), FPlayParams()); break;
+ case EVerseLiftSound::RideStop: StopLoop(Key, 0.4f); break;
+ }
+}
diff --git a/unreal/Verse/Source/VerseUI/Private/Audio/VerseEngineAudioSink.cpp b/unreal/Verse/Source/VerseUI/Private/Audio/VerseEngineAudioSink.cpp
new file mode 100644
index 0000000000..dc0bb70fb4
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Audio/VerseEngineAudioSink.cpp
@@ -0,0 +1,273 @@
+#include "VerseEngineAudioSink.h"
+
+#include "Audio/VerseAudioTypes.h"
+#include "AudioDevice.h"
+#include "Components/AudioComponent.h"
+#include "Engine/World.h"
+#include "Kismet/GameplayStatics.h"
+#include "Modules/ModuleManager.h"
+#include "Sound/SoundAttenuation.h"
+#include "Sound/SoundBase.h"
+#include "Sound/SoundEffectSubmix.h"
+#include "Sound/SoundSubmix.h"
+#include "UObject/Package.h"
+#include "VerseLog.h"
+
+namespace
+{
+ bool SetFloatField(const UScriptStruct* Struct, void* Data, const TCHAR* Name, float Value)
+ {
+ const FFloatProperty* Prop = FindFProperty<FFloatProperty>(Struct, Name);
+ if (!Prop)
+ {
+ return false;
+ }
+ Prop->SetPropertyValue_InContainer(Data, Value);
+ return true;
+ }
+
+ bool SetEnumField(const UScriptStruct* Struct, void* Data, const TCHAR* Name, const TCHAR* ValueName)
+ {
+ const FEnumProperty* Prop = FindFProperty<FEnumProperty>(Struct, Name);
+ if (!Prop || !Prop->GetEnum())
+ {
+ return false;
+ }
+ const int64 Value = Prop->GetEnum()->GetValueByNameString(ValueName);
+ if (Value == INDEX_NONE)
+ {
+ return false;
+ }
+ Prop->GetUnderlyingProperty()->SetIntPropertyValue(Prop->ContainerPtrToValuePtr<void>(Data), Value);
+ return true;
+ }
+}
+
+USoundEffectSubmixPreset* FVerseEngineAudioSink::MakeLimiterPreset(UObject* Outer, const FVerseAudioMixSettings& Mix)
+{
+ // The dynamics processor lives in the AudioMixer module, which VerseUI does not link
+ // (architecture 2 edges); it is configured through reflection, by its stable property names.
+ static const TCHAR* ClassPath = TEXT("/Script/AudioMixer.SubmixEffectDynamicsProcessorPreset");
+ UClass* PresetClass = FindObject<UClass>(nullptr, ClassPath);
+ if (!PresetClass && FModuleManager::Get().ModuleExists(TEXT("AudioMixer")))
+ {
+ FModuleManager::Get().LoadModule(TEXT("AudioMixer"));
+ PresetClass = FindObject<UClass>(nullptr, ClassPath);
+ }
+ if (!PresetClass || !PresetClass->IsChildOf(USoundEffectSubmixPreset::StaticClass()))
+ {
+ return nullptr;
+ }
+ USoundEffectSubmixPreset* Preset = NewObject<USoundEffectSubmixPreset>(Outer, PresetClass, NAME_None, RF_Transient);
+ const FStructProperty* SettingsProp = FindFProperty<FStructProperty>(PresetClass, TEXT("Settings"));
+ if (!SettingsProp)
+ {
+ return nullptr;
+ }
+ void* Settings = SettingsProp->ContainerPtrToValuePtr<void>(Preset);
+ const UScriptStruct* Struct = SettingsProp->Struct;
+ const bool bOk = SetEnumField(Struct, Settings, TEXT("DynamicsProcessorType"), TEXT("Limiter"))
+ && SetEnumField(Struct, Settings, TEXT("PeakMode"), TEXT("Peak"))
+ && SetFloatField(Struct, Settings, TEXT("ThresholdDb"), Mix.LimiterThresholdDb)
+ && SetFloatField(Struct, Settings, TEXT("LookAheadMsec"), Mix.LimiterLookaheadMs)
+ && SetFloatField(Struct, Settings, TEXT("AttackTimeMsec"), Mix.LimiterAttackMs)
+ && SetFloatField(Struct, Settings, TEXT("ReleaseTimeMsec"), Mix.LimiterReleaseMs);
+ if (!bOk)
+ {
+ UE_LOG(LogVerseUI, Warning, TEXT("Verse audio: dynamics processor settings changed shape; no limiter"));
+ return nullptr;
+ }
+ Preset->Init(); // copies Settings into the preset's runtime copy
+ return Preset;
+}
+
+bool FVerseEngineAudioSink::Initialize(UWorld* InWorld, const FVerseAudioMixSettings& Mix)
+{
+ World = InWorld;
+ FAudioDevice* Device = InWorld ? InWorld->GetAudioDeviceRaw() : nullptr;
+ if (!Device)
+ {
+ return false;
+ }
+ UPackage* Transient = GetTransientPackage();
+ MasterSubmix = NewObject<USoundSubmix>(Transient,
+ MakeUniqueObjectName(Transient, USoundSubmix::StaticClass(), TEXT("VerseMasterSubmix")), RF_Transient);
+ if (USoundEffectSubmixPreset* Limiter = MakeLimiterPreset(MasterSubmix, Mix))
+ {
+ MasterSubmix->SubmixEffectChain.Add(Limiter);
+ }
+ // One child submix per bus under the master, in EVerseAudioBus order. The bus gain of mix.json
+ // stays on the voice multiplier, where the subsystem log and the reference mix see it.
+ BusSubmixes.Reset();
+ const UEnum* BusEnum = StaticEnum<EVerseAudioBus>();
+ for (int32 Bus = 0; Bus < VerseAudioBusCount; ++Bus)
+ {
+ const FString Name = FString::Printf(TEXT("VerseBus_%s"),
+ BusEnum ? *BusEnum->GetNameStringByValue(Bus) : *FString::FromInt(Bus));
+ USoundSubmix* Child = NewObject<USoundSubmix>(Transient,
+ MakeUniqueObjectName(Transient, USoundSubmix::StaticClass(), FName(*Name)), RF_Transient);
+ Child->ParentSubmix = MasterSubmix;
+ MasterSubmix->ChildSubmixes.Add(Child);
+ BusSubmixes.Add(Child);
+ }
+ Device->RegisterSoundSubmix(MasterSubmix, true);
+ for (USoundSubmix* Child : BusSubmixes)
+ {
+ Device->RegisterSoundSubmix(Child, true);
+ }
+ return true;
+}
+
+void FVerseEngineAudioSink::Play(int32 Handle, const FVerseAudioPlayRequest& Request)
+{
+ UWorld* W = World.Get();
+ if (!W || !Request.Sound)
+ {
+ return;
+ }
+ if (++PlaysSincePrune >= 32)
+ {
+ PruneFinished();
+ }
+ UAudioComponent* Component = Request.bSpatial
+ ? UGameplayStatics::SpawnSoundAtLocation(W, Request.Sound, Request.Location, FRotator::ZeroRotator,
+ Request.Volume, Request.Pitch, 0.f, Request.Attenuation, nullptr, true)
+ : UGameplayStatics::SpawnSound2D(W, Request.Sound, Request.Volume, Request.Pitch, 0.f, nullptr, false, true);
+ if (!Component)
+ {
+ return; // no audio device (-nosound): the subsystem still logged the play
+ }
+ if (!FMath::IsNearlyEqual(Request.Fader, 1.f))
+ {
+ // The occlusion gain lives on the fader only; multiplier x fader is the heard level.
+ Component->AdjustVolume(0.f, FMath::Max(Request.Fader, UE_KINDA_SMALL_NUMBER));
+ }
+ if (Request.LowpassHz < 19999.f)
+ {
+ Component->SetLowPassFilterEnabled(true);
+ Component->SetLowPassFilterFrequency(Request.LowpassHz);
+ }
+ Voices.Add(Handle, Component);
+}
+
+void FVerseEngineAudioSink::Stop(int32 Handle, float FadeOutS)
+{
+ if (TWeakObjectPtr<UAudioComponent>* Found = Voices.Find(Handle))
+ {
+ if (UAudioComponent* Component = Found->Get())
+ {
+ if (FadeOutS > 0.f)
+ {
+ Component->FadeOut(FadeOutS, 0.f);
+ }
+ else
+ {
+ Component->Stop();
+ }
+ }
+ Voices.Remove(Handle);
+ }
+}
+
+void FVerseEngineAudioSink::SetVoiceLocation(int32 Handle, const FVector& Location)
+{
+ if (TWeakObjectPtr<UAudioComponent>* Found = Voices.Find(Handle))
+ {
+ if (UAudioComponent* Component = Found->Get())
+ {
+ Component->SetWorldLocation(Location);
+ }
+ }
+}
+
+void FVerseEngineAudioSink::SetVoiceOcclusion(int32 Handle, float Gain, float LowpassHz)
+{
+ if (TWeakObjectPtr<UAudioComponent>* Found = Voices.Find(Handle))
+ {
+ if (UAudioComponent* Component = Found->Get())
+ {
+ // Fader only: the multiplier set at the start already holds the base volume.
+ Component->AdjustVolume(0.1f, FMath::Max(Gain, UE_KINDA_SMALL_NUMBER));
+ Component->SetLowPassFilterEnabled(LowpassHz < 19999.f);
+ Component->SetLowPassFilterFrequency(LowpassHz);
+ }
+ }
+}
+
+void FVerseEngineAudioSink::SetMasterVolume(float Volume)
+{
+ if (UWorld* W = World.Get())
+ {
+ if (FAudioDevice* Device = W->GetAudioDeviceRaw())
+ {
+ Device->SetTransientPrimaryVolume(Volume);
+ }
+ }
+}
+
+USoundSubmix* FVerseEngineAudioSink::GetBusSubmix(EVerseAudioBus Bus) const
+{
+ return BusSubmixes.IsValidIndex(int32(Bus)) ? BusSubmixes[int32(Bus)].Get() : MasterSubmix.Get();
+}
+
+void FVerseEngineAudioSink::Route(USoundBase* Sound, EVerseAudioBus Bus)
+{
+ if (Sound)
+ {
+ if (USoundSubmix* Target = GetBusSubmix(Bus))
+ {
+ Sound->SoundSubmixObject = Target;
+ }
+ }
+}
+
+void FVerseEngineAudioSink::PruneFinished()
+{
+ PlaysSincePrune = 0;
+ for (auto It = Voices.CreateIterator(); It; ++It)
+ {
+ const UAudioComponent* Component = It.Value().Get();
+ if (!Component || !Component->IsPlaying())
+ {
+ It.RemoveCurrent();
+ }
+ }
+}
+
+void FVerseEngineAudioSink::Shutdown()
+{
+ for (TPair<int32, TWeakObjectPtr<UAudioComponent>>& Pair : Voices)
+ {
+ if (UAudioComponent* Component = Pair.Value.Get())
+ {
+ Component->Stop();
+ }
+ }
+ Voices.Reset();
+ if (UWorld* W = World.Get())
+ {
+ if (FAudioDevice* Device = W->GetAudioDeviceRaw())
+ {
+ Device->SetTransientPrimaryVolume(1.f);
+ for (USoundSubmix* Child : BusSubmixes)
+ {
+ if (Child)
+ {
+ Device->UnregisterSoundSubmix(Child, false);
+ }
+ }
+ if (MasterSubmix)
+ {
+ Device->UnregisterSoundSubmix(MasterSubmix, false);
+ }
+ }
+ }
+ BusSubmixes.Reset();
+ MasterSubmix = nullptr;
+}
+
+void FVerseEngineAudioSink::AddReferencedObjects(FReferenceCollector& Collector)
+{
+ Collector.AddReferencedObject(MasterSubmix);
+ Collector.AddReferencedObjects(BusSubmixes);
+}
diff --git a/unreal/Verse/Source/VerseUI/Private/Audio/VerseEngineAudioSink.h b/unreal/Verse/Source/VerseUI/Private/Audio/VerseEngineAudioSink.h
new file mode 100644
index 0000000000..251c747980
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Audio/VerseEngineAudioSink.h
@@ -0,0 +1,53 @@
+#pragma once
+
+#include "Audio/VerseAudioSink.h"
+#include "CoreMinimal.h"
+#include "UObject/GCObject.h"
+#include "UObject/WeakObjectPtr.h"
+
+class UAudioComponent;
+class USoundSubmix;
+
+/**
+ * Plays voices through audio components. Every Verse sound routes to the transient submix of its
+ * bus (weapons, impacts, foley, destruction, gadgets, ambience, UI); the bus submixes feed one
+ * master submix whose effect chain is a look-ahead limiter (mix.json limiter). The mute and the
+ * user volume are the device's transient primary volume, after the limiter.
+ *
+ * A voice's volume multiplier is set once at the start; occlusion moves only the component's
+ * fader, so the engine's level (multiplier x fader) never counts the base volume twice.
+ */
+class FVerseEngineAudioSink final : public IVerseAudioSink, public FGCObject
+{
+public:
+ virtual bool Initialize(UWorld* World, const FVerseAudioMixSettings& Mix) override;
+ virtual void Play(int32 Handle, const FVerseAudioPlayRequest& Request) override;
+ virtual void Stop(int32 Handle, float FadeOutS) override;
+ virtual void SetVoiceLocation(int32 Handle, const FVector& Location) override;
+ virtual void SetVoiceOcclusion(int32 Handle, float Gain, float LowpassHz) override;
+ virtual void SetMasterVolume(float Volume) override;
+ virtual void Route(USoundBase* Sound, EVerseAudioBus Bus) override;
+ virtual void Shutdown() override;
+
+ virtual void AddReferencedObjects(FReferenceCollector& Collector) override;
+ virtual FString GetReferencerName() const override { return TEXT("FVerseEngineAudioSink"); }
+
+ /** The limiter preset for these settings; nullptr when the audio mixer module is not loaded. */
+ static class USoundEffectSubmixPreset* MakeLimiterPreset(UObject* Outer, const FVerseAudioMixSettings& Mix);
+
+ /** Voices the sink still tracks; finished one-shots are pruned. */
+ int32 NumTrackedVoices() const { return Voices.Num(); }
+ USoundSubmix* GetMasterSubmix() const { return MasterSubmix; }
+ /** The submix of a bus; the master when the bus has none. */
+ USoundSubmix* GetBusSubmix(EVerseAudioBus Bus) const;
+
+private:
+ /** Drops voices whose component finished or is gone; one-shots are never stopped by hand. */
+ void PruneFinished();
+
+ TWeakObjectPtr<UWorld> World;
+ TObjectPtr<USoundSubmix> MasterSubmix = nullptr;
+ TArray<TObjectPtr<USoundSubmix>> BusSubmixes;
+ TMap<int32, TWeakObjectPtr<UAudioComponent>> Voices;
+ int32 PlaysSincePrune = 0;
+};
diff --git a/unreal/Verse/Source/VerseUI/Private/Tests/Audio/Fakes/VerseAudioFakes.h b/unreal/Verse/Source/VerseUI/Private/Tests/Audio/Fakes/VerseAudioFakes.h
new file mode 100644
index 0000000000..df7358220f
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Tests/Audio/Fakes/VerseAudioFakes.h
@@ -0,0 +1,140 @@
+#pragma once
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+#include "Audio/VerseAudioSink.h"
+#include "CoreMinimal.h"
+#include "Destruction/VerseDestructionInterfaces.h"
+
+/** Records every voice instead of playing it (work-packages.md 0.3 fake). */
+class FFakeVerseAudioSink final : public IVerseAudioSink
+{
+public:
+ struct FPlay
+ {
+ int32 Handle = 0;
+ FVerseAudioPlayRequest Request;
+ int64 Frame = 0;
+ };
+
+ TArray<FPlay> Plays;
+ TArray<int32> Stops;
+ /** The engine model of a voice's level: a multiplier fixed at the start times a fader. */
+ TMap<int32, float> VoiceMultiplier;
+ TMap<int32, float> VoiceFader;
+ TMap<int32, float> VoiceLowpass;
+ TArray<float> MasterHistory;
+ float Master = 1.f;
+ int32 Routed = 0;
+
+ virtual bool Initialize(UWorld*, const FVerseAudioMixSettings&) override { return true; }
+ virtual void Play(int32 Handle, const FVerseAudioPlayRequest& Request) override
+ {
+ Plays.Add({Handle, Request, int64(GFrameCounter)});
+ VoiceMultiplier.Add(Handle, Request.Volume);
+ VoiceFader.Add(Handle, Request.Fader);
+ VoiceLowpass.Add(Handle, Request.LowpassHz);
+ }
+ virtual void Stop(int32 Handle, float) override
+ {
+ Stops.Add(Handle);
+ VoiceMultiplier.Remove(Handle);
+ VoiceFader.Remove(Handle);
+ }
+ virtual void SetVoiceLocation(int32, const FVector&) override {}
+ virtual void SetVoiceOcclusion(int32 Handle, float Gain, float LowpassHz) override
+ {
+ VoiceFader.Add(Handle, Gain);
+ VoiceLowpass.Add(Handle, LowpassHz);
+ }
+ /** What the voice is heard at now (multiplier x fader, as FActiveSound::GetVolume); -1 when not playing. */
+ float EffectiveVolume(int32 Handle) const
+ {
+ const float* Mult = VoiceMultiplier.Find(Handle);
+ const float* Fader = VoiceFader.Find(Handle);
+ return Mult && Fader ? *Mult * *Fader : -1.f;
+ }
+ const FPlay* LastPlayOf(FName CueId) const
+ {
+ for (int32 I = Plays.Num() - 1; I >= 0; --I)
+ {
+ if (Plays[I].Request.CueId == CueId)
+ {
+ return &Plays[I];
+ }
+ }
+ return nullptr;
+ }
+ virtual void SetMasterVolume(float Volume) override
+ {
+ Master = Volume;
+ MasterHistory.Add(Volume);
+ }
+ virtual void Route(USoundBase*, EVerseAudioBus) override { ++Routed; }
+ virtual void Shutdown() override {}
+
+ int32 CountOf(FName CueId) const
+ {
+ int32 N = 0;
+ for (const FPlay& P : Plays)
+ {
+ N += P.Request.CueId == CueId ? 1 : 0;
+ }
+ return N;
+ }
+};
+
+/**
+ * One wall piece (index 0) across the X axis at X = WallX: a bolt or sound trace that crosses it
+ * enters the piece unless it is holed. Implements IVersePenetrationQuery and IVersePieceQuery
+ * exactly, nothing more (work-packages.md 0.3).
+ */
+class FFakeVerseWall final : public IVersePenetrationQuery, public IVersePieceQuery
+{
+public:
+ float WallX = 500.f;
+ float ThicknessCm = 1.2f;
+ EVersePenetrationMaterial Material = EVersePenetrationMaterial::SheetMetal;
+ EVersePieceState State = EVersePieceState::Intact;
+
+ virtual TArray<FVersePenetrationHit> TraceBolt(const FVector& Origin, const FVector& Dir, float MaxDist, float, float,
+ uint8, int32 MaxPieces) const override
+ {
+ TArray<FVersePenetrationHit> Hits;
+ const bool bOpen = State == EVersePieceState::Holed || State == EVersePieceState::Breached
+ || State == EVersePieceState::Destroyed;
+ const FVector End = Origin + Dir * MaxDist;
+ const bool bCrosses = (Origin.X - WallX) * (End.X - WallX) < 0.0;
+ if (!bOpen && bCrosses && MaxPieces > 0)
+ {
+ const double T = (WallX - Origin.X) / Dir.X;
+ FVersePenetrationHit Hit;
+ Hit.PieceIndex = 0;
+ Hit.MaterialWireId = uint8(Material);
+ Hit.Entry = Origin + Dir * T;
+ Hit.Exit = Hit.Entry + Dir * ThicknessCm;
+ Hit.TracedThicknessCm = ThicknessCm;
+ Hit.bPassed = true;
+ Hits.Add(Hit);
+ }
+ return Hits;
+ }
+
+ virtual bool TestSight(const FVector& Eye, const FVector& Target) const override
+ {
+ return TraceBolt(Eye, (Target - Eye).GetSafeNormal(), float(FVector::Dist(Eye, Target)), 0.f, 0.f, 0, 1).Num() == 0;
+ }
+
+ virtual EVersePieceState GetPieceState(uint16) const override { return State; }
+ virtual EVersePenetrationMaterial GetPieceMaterial(uint16) const override { return Material; }
+ virtual FBox GetPieceBounds(uint16) const override
+ {
+ return FBox(FVector(WallX - 1.0, -200.0, 0.0), FVector(WallX + 1.0, 200.0, 300.0));
+ }
+ virtual TArray<uint16> GetPiecesInBox(const FBox& Box) const override
+ {
+ return Box.Intersect(GetPieceBounds(0)) ? TArray<uint16>{0} : TArray<uint16>{};
+ }
+};
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseUI/Private/Tests/Audio/VerseAudioMixerTests.cpp b/unreal/Verse/Source/VerseUI/Private/Tests/Audio/VerseAudioMixerTests.cpp
new file mode 100644
index 0000000000..8947a21297
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Tests/Audio/VerseAudioMixerTests.cpp
@@ -0,0 +1,395 @@
+#include "Misc/AutomationTest.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+#include "Audio/VerseAudioCueSet.h"
+#include "Audio/VerseAudioSubsystem.h"
+#include "AudioDevice.h"
+#include "AudioDeviceManager.h"
+#include "AudioThread.h"
+#include "Engine/Engine.h"
+#include "Engine/World.h"
+#include "Events/VerseEventHub.h"
+#include "Fakes/VerseAudioFakes.h"
+#include "HAL/FileManager.h"
+#include "HAL/IConsoleManager.h"
+#include "HAL/PlatformProcess.h"
+#include "HAL/PlatformTime.h"
+#include "ISubmixBufferListener.h"
+#include "Misc/FileHelper.h"
+#include "Misc/Paths.h"
+#include "Misc/ScopeLock.h"
+#include "Modules/ModuleManager.h"
+#include "Sound/SoundSubmix.h"
+#include "Sound/SoundWave.h"
+#include "../../Audio/VerseEngineAudioSink.h"
+
+#include <atomic>
+
+#if PLATFORM_WINDOWS
+#include "Windows/WindowsHWrapper.h"
+#endif
+
+// A19.3 with the audio mixer: destruction_storm through the engine sink and the shipped DA_AudioCues,
+// measuring the audio thread per frame and the audio render thread's CPU time per buffer. It needs a
+// run with sound (no -nosound); the headless -nosound lane only notes that it was skipped. The tap sits
+// on the Verse master submix; the device's main output is held at 0 for the run, so nothing is heard
+// on the machine's speakers, and the app's background volume is bypassed (au.DisableAppVolume) so an
+// unfocused test process still renders its sources.
+//
+// python scripts/unreal/with_lock.py --label wp19-mixer -- <UnrealEditor-Cmd> <Verse.uproject>
+// "-ExecCmds=Automation RunTests Verse.UI.Audio.MixerLoad; Quit" "-TestExit=Automation Test Queue Empty"
+// -unattended -nullrhi -nosplash -NoP4 -stdout -ReportExportPath=<dir> -abslog=<dir>/run.log
+
+#define VERSE_AUDIO_MIXER_TEST_FLAGS (EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+namespace VerseAudioMixerTest
+{
+ constexpr int32 MixerSelfId = 7;
+ constexpr int32 MixerBotId = 9;
+ constexpr double FrameS = 1.0 / 60.0;
+
+ /** Every buffer the Verse master submix renders: wall time and peak sample. */
+ class FMasterTap final : public ISubmixBufferListener
+ {
+ public:
+ struct FBuffer
+ {
+ double Time = 0.0;
+ float Peak = 0.f;
+ };
+
+ virtual void OnNewSubmixBuffer(const USoundSubmix*, float* AudioData, int32 NumSamples, int32 NumChannels,
+ const int32 SampleRate, double) override
+ {
+ float Peak = 0.f;
+ for (int32 I = 0; I < NumSamples; ++I)
+ {
+ Peak = FMath::Max(Peak, FMath::Abs(AudioData[I]));
+ }
+ RenderThreadId = FPlatformTLS::GetCurrentThreadId();
+ FScopeLock Lock(&Guard);
+ Buffers.Add({FPlatformTime::Seconds(), Peak});
+ Frames = NumChannels > 0 ? NumSamples / NumChannels : 0;
+ Rate = SampleRate;
+ }
+
+ virtual const FString& GetListenerName() const override
+ {
+ static const FString Name = TEXT("VerseAudioMixerLoadTap");
+ return Name;
+ }
+
+ TArray<FBuffer> Snapshot() const
+ {
+ FScopeLock Lock(&Guard);
+ return Buffers;
+ }
+
+ int32 Frames = 0;
+ int32 Rate = 0;
+ std::atomic<uint32> RenderThreadId{0};
+
+ private:
+ mutable FCriticalSection Guard;
+ TArray<FBuffer> Buffers;
+ };
+
+ /** CPU seconds a thread has used so far (kernel + user); negative when unknown. */
+ double ThreadCpuSeconds(uint32 ThreadId)
+ {
+#if PLATFORM_WINDOWS
+ if (ThreadId == 0)
+ {
+ return -1.0;
+ }
+ HANDLE Thread = ::OpenThread(THREAD_QUERY_LIMITED_INFORMATION, 0, ThreadId);
+ if (!Thread)
+ {
+ return -1.0;
+ }
+ FILETIME Create, Exit, Kernel, User;
+ const bool bOk = ::GetThreadTimes(Thread, &Create, &Exit, &Kernel, &User) != 0;
+ ::CloseHandle(Thread);
+ auto Sec = [](const FILETIME& T) { return double((uint64(T.dwHighDateTime) << 32) | T.dwLowDateTime) * 1e-7; };
+ return bOk ? Sec(Kernel) + Sec(User) : -1.0;
+#else
+ return -1.0;
+#endif
+ }
+
+ double Percentile(TArray<double> Values, double P)
+ {
+ if (Values.Num() == 0)
+ {
+ return 0.0;
+ }
+ Values.Sort();
+ return Values[FMath::Clamp(int32(FMath::CeilToDouble(P * Values.Num())) - 1, 0, Values.Num() - 1)];
+ }
+
+ double Mean(const TArray<double>& Values)
+ {
+ double Sum = 0.0;
+ for (double V : Values)
+ {
+ Sum += V;
+ }
+ return Values.Num() > 0 ? Sum / Values.Num() : 0.0;
+ }
+
+ FString Json(const TArray<TPair<FString, FString>>& Fields)
+ {
+ TArray<FString> Parts;
+ for (const TPair<FString, FString>& F : Fields)
+ {
+ Parts.Add(FString::Printf(TEXT("\"%s\": %s"), *F.Key, *F.Value));
+ }
+ return TEXT("{") + FString::Join(Parts, TEXT(", ")) + TEXT("}");
+ }
+
+ FString Num(double V) { return FString::Printf(TEXT("%.6g"), V); }
+ FString Str(const FString& V) { return TEXT("\"") + V.ReplaceCharWithEscapedChar() + TEXT("\""); }
+}
+
+using namespace VerseAudioMixerTest;
+
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioMixerLoad, "Verse.UI.Audio.MixerLoad", VERSE_AUDIO_MIXER_TEST_FLAGS)
+bool FVerseAudioMixerLoad::RunTest(const FString&)
+{
+ FAudioDeviceManager* Manager = GEngine ? GEngine->GetAudioDeviceManager() : nullptr;
+ FAudioDevice* Device = GEngine && GEngine->UseSound() ? GEngine->GetMainAudioDeviceRaw() : nullptr;
+ if (!Manager || !Device)
+ {
+ AddInfo(TEXT("No audio mixer in this run (-nosound): A19.3 audio-thread cost is measured in a run with sound."));
+ return true;
+ }
+ FModuleManager::Get().LoadModule(TEXT("BinkAudioDecoder"));
+ UVerseAudioCueSet* Shipped = LoadObject<UVerseAudioCueSet>(nullptr, UVerseAudioCueSet::DefaultAssetPath);
+ if (!TestNotNull(TEXT("DA_AudioCues is imported"), Shipped))
+ {
+ return false;
+ }
+ int32 Waves = 0;
+ for (const FVerseAudioCue& Cue : Shipped->Cues)
+ {
+ for (USoundBase* Sound : Cue.Variants)
+ {
+ if (USoundWave* Wave = Cast<USoundWave>(Sound))
+ {
+ Device->Precache(Wave, true);
+ ++Waves;
+ }
+ }
+ }
+
+ UWorld* World = UWorld::CreateWorld(EWorldType::Game, false, TEXT("VerseAudioMixerWorld"));
+ UVerseAudioSubsystem* Audio = World ? World->GetSubsystem<UVerseAudioSubsystem>() : nullptr;
+ UVerseEventHub* Hub = World ? World->GetSubsystem<UVerseEventHub>() : nullptr;
+ if (!TestNotNull(TEXT("audio subsystem"), Audio) || !TestNotNull(TEXT("hub"), Hub))
+ {
+ if (World)
+ {
+ World->DestroyWorld(false);
+ }
+ return false;
+ }
+ TSharedPtr<FVerseEngineAudioSink> Sink = MakeShared<FVerseEngineAudioSink>();
+ Audio->SetSink(Sink);
+ Audio->SetCueSet(Shipped);
+ Audio->SetLocalPlayerId(MixerSelfId);
+ Audio->SetListenerOverride(FVector::ZeroVector);
+ USoundSubmix* Master = Sink->GetMasterSubmix();
+ TestNotNull(TEXT("Verse master submix registered"), Master);
+ TestTrue(TEXT("one bus submix under the master per bus"),
+ Master && Master->ChildSubmixes.Num() == VerseAudioBusCount
+ && Sink->GetBusSubmix(EVerseAudioBus::Weapons) != Master);
+
+ TSharedRef<FMasterTap, ESPMode::ThreadSafe> Tap = MakeShared<FMasterTap, ESPMode::ThreadSafe>();
+ if (Master)
+ {
+ Device->RegisterSubmixBufferListener(Tap, *Master);
+ }
+ // Silent on the speakers: the main output (after the Verse master) is held at 0 for the run.
+ USoundSubmix& MainOut = Device->GetMainSubmixObject();
+ MainOut.SetSubmixOutputVolume(World, 0.f);
+ IConsoleVariable* AppVolume = IConsoleManager::Get().FindConsoleVariable(TEXT("au.DisableAppVolume"));
+ const int32 OldAppVolume = AppVolume ? AppVolume->GetInt() : 0;
+ if (AppVolume)
+ {
+ AppVolume->Set(1, ECVF_SetByCode);
+ }
+
+ TArray<double> AudioThreadMs;
+ auto Frame = [&]()
+ {
+ const double FrameStart = FPlatformTime::Seconds();
+ Audio->Tick(float(FrameS));
+ const double T0 = FPlatformTime::Seconds();
+ Manager->UpdateActiveAudioDevices(true);
+ FAudioCommandFence Fence;
+ Fence.BeginFence();
+ Fence.Wait();
+ AudioThreadMs.Add((FPlatformTime::Seconds() - T0) * 1000.0);
+ const double Left = FrameS - (FPlatformTime::Seconds() - FrameStart);
+ if (Left > 0.0)
+ {
+ FPlatformProcess::Sleep(float(Left));
+ }
+ };
+
+ // 1. Shot to first rendered buffer: own shots into silence.
+ TArray<double> ShotToRenderMs;
+ for (int32 Shot = 0; Shot < 5; ++Shot)
+ {
+ for (int32 I = 0; I < 90; ++I)
+ {
+ Frame(); // let the previous tail ring out
+ }
+ const int32 Before = Tap->Snapshot().Num();
+ FVerseFireEvent Fire;
+ Fire.ShooterId = MixerSelfId;
+ Fire.WeaponId = TEXT("rifle");
+ Fire.ShotCounter = uint16(Shot);
+ Fire.Origin = FVector(0.0, 0.0, 150.0);
+ Fire.Direction = FVector(1.0, 0.0, 0.0);
+ const double ShotAt = FPlatformTime::Seconds();
+ Hub->OnFire.Broadcast(Fire);
+ for (int32 I = 0; I < 30; ++I)
+ {
+ Frame();
+ }
+ const TArray<FMasterTap::FBuffer> Buffers = Tap->Snapshot();
+ for (int32 I = Before; I < Buffers.Num(); ++I)
+ {
+ if (Buffers[I].Time >= ShotAt && Buffers[I].Peak > 1e-4f)
+ {
+ ShotToRenderMs.Add((Buffers[I].Time - ShotAt) * 1000.0);
+ break;
+ }
+ }
+ }
+
+ // 2. destruction_storm, as Verse.UI.Audio.DestructionStorm but heard through the mixer.
+ FFakeVerseWall Wall;
+ Wall.WallX = 850.f;
+ Wall.Material = EVersePenetrationMaterial::ContainerWall;
+ Audio->SetPieceQuery(&Wall);
+ Audio->ResetPeakVoices();
+ AudioThreadMs.Reset();
+ FRandomStream Rng(19);
+ int32 Fractures = 0;
+ auto Burst = [&](int32 Count)
+ {
+ for (int32 I = 0; I < Count; ++I)
+ {
+ FVerseFractureEvent F;
+ F.PieceIndex = uint16(Rng.RandRange(0, 599));
+ F.FromState = EVersePieceState::Intact;
+ F.ToState = Rng.FRand() < 0.6f ? EVersePieceState::Destroyed : EVersePieceState::Holed;
+ F.Cause = Rng.FRand() < 0.3f ? EVerseFractureCause::Breach : EVerseFractureCause::Bolt;
+ F.Seed = Rng.GetUnsignedInt();
+ Hub->OnFracture.Broadcast(F);
+ ++Fractures;
+ }
+ };
+ const int32 BuffersBeforeStorm = Tap->Snapshot().Num();
+ const double RenderCpuStart = ThreadCpuSeconds(Tap->RenderThreadId.load());
+ Audio->StartDroneLoop(1, true, FVector(400.0, 100.0, 100.0));
+ Audio->SetAmbience(EVerseAmbience::Hangar);
+ Burst(400);
+ for (int32 Tick = 0; Tick < 60 * 8; ++Tick)
+ {
+ Burst(1 + (Tick % 2));
+ if (Tick % 6 == 0)
+ {
+ FVerseFireEvent Fire;
+ Fire.ShooterId = (Tick / 6) % 2 ? MixerBotId : MixerSelfId;
+ Fire.WeaponId = TEXT("rifle");
+ Fire.Origin = FVector(1200.0, 300.0, 150.0);
+ Fire.Direction = FVector(-1.0, 0.0, 0.0);
+ Hub->OnFire.Broadcast(Fire);
+ }
+ Frame();
+ }
+ const int32 PeakVoices = Audio->GetPeakVoices();
+ const double RenderCpuEnd = ThreadCpuSeconds(Tap->RenderThreadId.load());
+ const int32 BuffersAfterStorm = Tap->Snapshot().Num();
+ Audio->StopDroneLoop(1);
+ Audio->SetAmbience(EVerseAmbience::None);
+ for (int32 I = 0; I < 40; ++I)
+ {
+ Frame(); // flush the last render-time line
+ }
+
+ if (AppVolume)
+ {
+ AppVolume->Set(OldAppVolume, ECVF_SetByCode);
+ }
+ MainOut.SetSubmixOutputVolume(World, 1.f);
+ if (Master)
+ {
+ Device->UnregisterSubmixBufferListener(Tap, *Master);
+ }
+ const TArray<FMasterTap::FBuffer> Buffers = Tap->Snapshot();
+ int32 StormBuffers = 0, Loud = 0;
+ for (int32 I = BuffersBeforeStorm; I < Buffers.Num(); ++I)
+ {
+ ++StormBuffers;
+ Loud += Buffers[I].Peak > 1e-4f ? 1 : 0;
+ }
+ const int32 RenderedInStorm = BuffersAfterStorm - BuffersBeforeStorm;
+ const bool bRenderCpu = RenderCpuStart >= 0.0 && RenderCpuEnd >= RenderCpuStart && RenderedInStorm > 0;
+ const double RenderMean = bRenderCpu ? (RenderCpuEnd - RenderCpuStart) * 1000.0 / RenderedInStorm : 0.0;
+ const int32 Tracked = Sink->NumTrackedVoices();
+ Audio->SetPieceQuery(nullptr);
+ World->DestroyWorld(false);
+
+ const double ThreadMean = Mean(AudioThreadMs);
+ const double BufferMs = Tap->Rate > 0 ? 1000.0 * Tap->Frames / Tap->Rate : 0.0;
+ TestTrue(TEXT("the master submix rendered sound during the storm"), Loud > 0);
+ TestTrue(TEXT("A19.3 peak voices at most 64"), PeakVoices <= 64);
+ TestTrue(FString::Printf(TEXT("A19.3 audio thread %.3f ms per frame at most 1.5 ms"), ThreadMean), ThreadMean <= 1.5);
+ if (bRenderCpu)
+ {
+ TestTrue(FString::Printf(TEXT("A19.3 audio render thread %.3f ms CPU per buffer at most 1.5 ms"), RenderMean), RenderMean <= 1.5);
+ }
+ else
+ {
+ AddWarning(TEXT("audio render thread CPU time not readable on this platform; render cost not measured"));
+ }
+ TestTrue(TEXT("finished one-shots are pruned from the sink"), Tracked < 64);
+
+ const FString Report = Json({
+ {TEXT("test"), Str(TEXT("A19.3 load, destruction_storm with the audio mixer"))},
+ {TEXT("sound_waves_precached"), Num(Waves)},
+ {TEXT("fractures"), Num(Fractures)},
+ {TEXT("peak_voices"), Num(PeakVoices)},
+ {TEXT("max_voices"), Num(64)},
+ {TEXT("frames"), Num(AudioThreadMs.Num())},
+ {TEXT("audio_thread_ms_mean"), Num(ThreadMean)},
+ {TEXT("audio_thread_ms_p95"), Num(Percentile(AudioThreadMs, 0.95))},
+ {TEXT("audio_thread_ms_max"), Num(Percentile(AudioThreadMs, 1.0))},
+ {TEXT("audio_thread_measures"), Str(TEXT("UpdateActiveAudioDevices plus an audio command fence, per 60 Hz frame"))},
+ {TEXT("render_thread_cpu_ms_per_buffer_mean"), Num(RenderMean)},
+ {TEXT("render_thread_cpu_measures"), Str(TEXT("CPU time of the audio render thread over the storm / buffers rendered"))},
+ {TEXT("render_buffers_in_storm"), Num(RenderedInStorm)},
+ {TEXT("speaker_output"), Str(TEXT("main output submix held at 0 for the run"))},
+ {TEXT("buffer_frames"), Num(Tap->Frames)},
+ {TEXT("sample_rate"), Num(Tap->Rate)},
+ {TEXT("buffer_ms"), Num(BufferMs)},
+ {TEXT("storm_buffers"), Num(StormBuffers)},
+ {TEXT("storm_buffers_with_sound"), Num(Loud)},
+ {TEXT("shot_to_first_rendered_buffer_ms_mean"), Num(Mean(ShotToRenderMs))},
+ {TEXT("shot_to_first_rendered_buffer_ms_max"), Num(Percentile(ShotToRenderMs, 1.0))},
+ {TEXT("shots_measured"), Num(ShotToRenderMs.Num())},
+ {TEXT("sink_voices_tracked_at_end"), Num(Tracked)},
+ });
+ const FString Dir = FPaths::Combine(FPaths::ProjectSavedDir(), TEXT("Harness"), TEXT("proof"), TEXT("WP19"), TEXT("19.6"));
+ IFileManager::Get().MakeDirectory(*Dir, true);
+ FFileHelper::SaveStringToFile(Report, *FPaths::Combine(Dir, TEXT("mixer_load.json")));
+ AddInfo(Report);
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseUI/Private/Tests/Audio/VerseAudioTests.cpp b/unreal/Verse/Source/VerseUI/Private/Tests/Audio/VerseAudioTests.cpp
new file mode 100644
index 0000000000..f5ae766cd8
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Tests/Audio/VerseAudioTests.cpp
@@ -0,0 +1,723 @@
+#include "Misc/AutomationTest.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+#include "Audio/VerseAudioCueSet.h"
+#include "Audio/VerseAudioMath.h"
+#include "Audio/VerseAudioSubsystem.h"
+#include "Engine/World.h"
+#include "Events/VerseEventHub.h"
+#include "Fakes/VerseAudioFakes.h"
+#include "GameplayTagContainer.h"
+#include "HAL/FileManager.h"
+#include "Misc/FileHelper.h"
+#include "Misc/Paths.h"
+#include "Modules/ModuleManager.h"
+#include "Noise/VerseAudibilityTable.h"
+#include "Internationalization/Regex.h"
+#include "Sound/SoundAttenuation.h"
+#include "Sound/SoundEffectSubmix.h"
+#include "Sound/SoundWave.h"
+#include "../../Audio/VerseEngineAudioSink.h"
+#include "VerseGameplayTags.h"
+
+// WP19 acceptance tests A19.1-A19.6 and the occlusion, fairness and variant rules. They run headless
+// (-nullrhi -nosound) against a recording sink; Verse.UI.Audio.ShippedCues checks the imported asset.
+
+#define VERSE_AUDIO_TEST_FLAGS (EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+namespace VerseAudioTest
+{
+ constexpr int32 LocalId = 7;
+ constexpr int32 BotId = 9;
+
+ FString ProofDir(const TCHAR* SubTask)
+ {
+ return FPaths::Combine(FPaths::ProjectSavedDir(), TEXT("Harness"), TEXT("proof"), TEXT("WP19"), SubTask);
+ }
+
+ /** Tiny JSON writer for the proof files (VerseUI does not link the Json module). */
+ struct FProof
+ {
+ TArray<FString> Fields;
+ void Str(const TCHAR* K, const FString& V) { Fields.Add(FString::Printf(TEXT("\"%s\": \"%s\""), K, *V.ReplaceCharWithEscapedChar())); }
+ void Num(const TCHAR* K, double V) { Fields.Add(FString::Printf(TEXT("\"%s\": %.6g"), K, V)); }
+ void Bool(const TCHAR* K, bool V) { Fields.Add(FString::Printf(TEXT("\"%s\": %s"), K, V ? TEXT("true") : TEXT("false"))); }
+ void Raw(const TCHAR* K, const FString& V) { Fields.Add(FString::Printf(TEXT("\"%s\": %s"), K, *V)); }
+ FString ToString() const { return TEXT("{") + FString::Join(Fields, TEXT(", ")) + TEXT("}"); }
+ static FString Array(const TArray<FProof>& Items)
+ {
+ TArray<FString> Parts;
+ for (const FProof& P : Items)
+ {
+ Parts.Add(P.ToString());
+ }
+ return TEXT("[") + FString::Join(Parts, TEXT(", ")) + TEXT("]");
+ }
+ };
+
+ void WriteProof(const TCHAR* SubTask, const TCHAR* File, const FProof& Proof)
+ {
+ const FString Dir = ProofDir(SubTask);
+ IFileManager::Get().MakeDirectory(*Dir, true);
+ FFileHelper::SaveStringToFile(Proof.ToString(), *FPaths::Combine(Dir, File));
+ }
+
+ USoundWave* MakeWave(UObject* Outer, float DurationS, bool bLoop)
+ {
+ USoundWave* Wave = NewObject<USoundWave>(Outer, NAME_None, RF_Transient);
+ Wave->Duration = DurationS;
+ Wave->bLooping = bLoop;
+ return Wave;
+ }
+
+ void AddCue(UVerseAudioCueSet* Set, const TCHAR* Id, bool bSpatial, const TCHAR* Noise, float RangeM, float Priority,
+ int32 MaxVoices, bool bLoop = false, float DurationS = 0.6f, int32 Variants = 3)
+ {
+ FVerseAudioCue Cue;
+ Cue.CueId = Id;
+ Cue.bSpatial = bSpatial;
+ Cue.NoiseTag = Noise ? FName(Noise) : NAME_None;
+ Cue.RangeM = RangeM;
+ Cue.Priority = Priority;
+ Cue.MaxVoices = MaxVoices;
+ Cue.bLoop = bLoop;
+ Cue.Licence = TEXT("own");
+ for (int32 I = 0; I < Variants; ++I)
+ {
+ Cue.Variants.Add(MakeWave(Set, DurationS, bLoop));
+ }
+ Set->Cues.Add(Cue);
+ }
+
+ /** The cue list of cues.json with placeholder waves: the rules under test never read audio data. */
+ UVerseAudioCueSet* MakeCueSet(UObject* Outer)
+ {
+ UVerseAudioCueSet* Set = NewObject<UVerseAudioCueSet>(Outer, NAME_None, RF_Transient);
+ Set->WeaponProfiles = {TEXT("pistol"), TEXT("rifle")};
+ for (const TCHAR* W : {TEXT("rifle"), TEXT("pistol")})
+ {
+ AddCue(Set, *FString::Printf(TEXT("wpn_%s_fp_mech"), W), false, nullptr, 0, 10, 6, false, 0.22f);
+ AddCue(Set, *FString::Printf(TEXT("wpn_%s_fp_body"), W), false, nullptr, 0, 10, 6, false, 0.45f);
+ AddCue(Set, *FString::Printf(TEXT("wpn_%s_tail"), W), false, nullptr, 0, 8, 4, false, 2.0f);
+ AddCue(Set, *FString::Printf(TEXT("wpn_%s_tp_near"), W), true, TEXT("Noise.Shot"), 0, 10, 6, false, 0.9f);
+ AddCue(Set, *FString::Printf(TEXT("wpn_%s_tp_far"), W), true, TEXT("Noise.Shot"), 0, 9, 4, false, 3.0f);
+ AddCue(Set, *FString::Printf(TEXT("wpn_%s_tp_tail"), W), true, TEXT("Noise.Shot"), 0, 7, 4, false, 2.4f);
+ AddCue(Set, *FString::Printf(TEXT("rld_%s_tactical"), W), true, TEXT("Noise.Reload"), 0, 7, 2, false, 1.2f);
+ AddCue(Set, *FString::Printf(TEXT("rld_%s_empty"), W), true, TEXT("Noise.Reload"), 0, 7, 2, false, 1.9f);
+ }
+ AddCue(Set, TEXT("bolt_flyby"), true, nullptr, 6, 9, 4, false, 0.35f);
+ for (const TCHAR* M : {TEXT("sheet_metal"), TEXT("container_wall"), TEXT("glass"), TEXT("cladding_panel"),
+ TEXT("catwalk_grating"), TEXT("ceiling_panel"), TEXT("concrete"), TEXT("armor_steel"), TEXT("flesh")})
+ {
+ AddCue(Set, *FString::Printf(TEXT("imp_%s"), M), true, TEXT("Noise.Impact"), 60, 6, 6, false, 0.45f);
+ }
+ AddCue(Set, TEXT("imp_penetration_exit"), true, TEXT("Noise.Impact"), 60, 6, 4);
+ AddCue(Set, TEXT("imp_hurt"), false, nullptr, 0, 10, 2);
+ for (const TCHAR* S : {TEXT("fs_metal"), TEXT("fs_metal_boots"), TEXT("fs_grating"), TEXT("fs_concrete"), TEXT("fs_rubble")})
+ {
+ AddCue(Set, S, true, TEXT("Noise.Footstep.Run"), 0, 5, 4, false, 0.25f, 4);
+ }
+ AddCue(Set, TEXT("fol_slide"), true, TEXT("Noise.Move.Slide"), 0, 6, 4);
+ AddCue(Set, TEXT("fol_land"), true, TEXT("Noise.Move.Land"), 0, 6, 4);
+ AddCue(Set, TEXT("fol_mantle"), true, TEXT("Noise.Move.Mantle"), 0, 6, 4);
+ AddCue(Set, TEXT("fol_lean"), false, nullptr, 0, 3, 2);
+ AddCue(Set, TEXT("mel_knife_swing"), true, TEXT("Noise.Melee"), 0, 8, 4);
+ AddCue(Set, TEXT("mel_knife_hit"), true, TEXT("Noise.Melee"), 0, 9, 4);
+ for (const TCHAR* P : {TEXT("dst_wall_panel"), TEXT("dst_cladding_wall"), TEXT("dst_container_wall"),
+ TEXT("dst_glass_pane"), TEXT("dst_catwalk_segment"), TEXT("dst_ceiling_panel"), TEXT("dst_hole")})
+ {
+ AddCue(Set, P, true, TEXT("Noise.Fracture"), 0, 7, 6, false, 2.2f);
+ }
+ for (const TCHAR* K : {TEXT("dst_settle_metal"), TEXT("dst_settle_glass"), TEXT("dst_settle_dust")})
+ {
+ AddCue(Set, K, true, TEXT("Noise.Fracture"), 0, 2, 6, false, 1.5f);
+ }
+ AddCue(Set, TEXT("drn_flight"), true, TEXT("Noise.Drone"), 0, 5, 3, true, 3.6f, 1);
+ AddCue(Set, TEXT("drn_weld"), true, TEXT("Noise.Drone"), 0, 5, 3, true, 3.6f, 1);
+ AddCue(Set, TEXT("amb_hangar"), false, nullptr, 0, 2, 1, true, 10.f, 1);
+ AddCue(Set, TEXT("ui_click"), false, nullptr, 0, 4, 2);
+ Set->RebuildIndex();
+ return Set;
+ }
+
+ struct FRig
+ {
+ UWorld* World = nullptr;
+ UVerseAudioSubsystem* Audio = nullptr;
+ UVerseEventHub* Hub = nullptr;
+ TSharedPtr<FFakeVerseAudioSink> Sink;
+
+ bool Make(FAutomationTestBase& Test)
+ {
+ World = UWorld::CreateWorld(EWorldType::Game, false, TEXT("VerseAudioTestWorld"));
+ if (!Test.TestNotNull(TEXT("test world"), World))
+ {
+ return false;
+ }
+ Audio = World->GetSubsystem<UVerseAudioSubsystem>();
+ Hub = World->GetSubsystem<UVerseEventHub>();
+ if (!Test.TestNotNull(TEXT("audio subsystem in a game world"), Audio) || !Test.TestNotNull(TEXT("hub"), Hub))
+ {
+ return false;
+ }
+ Sink = MakeShared<FFakeVerseAudioSink>();
+ Audio->SetSink(Sink);
+ Audio->SetCueSet(MakeCueSet(Audio));
+ Audio->SetLocalPlayerId(LocalId);
+ Audio->SetListenerOverride(FVector::ZeroVector);
+ return true;
+ }
+
+ ~FRig()
+ {
+ if (World)
+ {
+ World->DestroyWorld(false);
+ }
+ }
+
+ void Advance(float Seconds, float Step = 1.f / 60.f)
+ {
+ for (float T = 0.f; T < Seconds - KINDA_SMALL_NUMBER; T += Step)
+ {
+ Audio->Tick(Step);
+ }
+ }
+ };
+
+ const FVerseAudioLogEntry* LastOf(const UVerseAudioSubsystem& Audio, FName CueId)
+ {
+ const TArray<FVerseAudioLogEntry>& Log = Audio.GetEventLog();
+ for (int32 I = Log.Num() - 1; I >= 0; --I)
+ {
+ if (Log[I].CueId == CueId)
+ {
+ return &Log[I];
+ }
+ }
+ return nullptr;
+ }
+}
+
+using namespace VerseAudioTest;
+
+// A19.1 F6 symmetry: the attenuation of every Noise.* tag ends exactly at its DA_Audibility range.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioAudibilitySymmetry, "Verse.UI.Audio.AudibilitySymmetry", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioAudibilitySymmetry::RunTest(const FString&)
+{
+ const UVerseAudibilityTable& Table = *GetDefault<UVerseAudibilityTable>();
+ const FVerseAudioMixSettings Mix;
+ TArray<FProof> Rows;
+ int32 Mismatches = 0;
+ auto Check = [&](const FGameplayTag& Tag, float Loudness)
+ {
+ const float RangeM = Table.GetAudibleRangeM(Tag, Loudness);
+ FSoundAttenuationSettings Att;
+ Verse::Audio::BuildAttenuation(RangeM, Mix, Att);
+ const float Expected = Verse::Audio::MaxAttenuationDistanceCm(RangeM);
+ const float Got = Att.GetMaxDimension();
+ const FVerseAudibilityRow* Row = Table.FindRow(Tag);
+ const bool bFinite = Row && !Row->bWholeArena;
+ bool bOk = FMath::IsNearlyEqual(Got, Expected, 1.f) && RangeM > 0.f;
+ if (bFinite)
+ {
+ bOk &= FMath::IsNearlyEqual(Got, RangeM * 100.f, 1.f);
+ bOk &= Verse::Audio::DistanceGain(RangeM, RangeM, Mix) == 0.f;
+ bOk &= Verse::Audio::DistanceGain(RangeM * 0.98f, RangeM, Mix) > 0.f;
+ }
+ else
+ {
+ bOk &= Verse::Audio::DistanceGain(150.f, RangeM, Mix) > 0.f; // heard across the whole hangar
+ }
+ Mismatches += bOk ? 0 : 1;
+ TestTrue(FString::Printf(TEXT("%s x%.2f: attenuation ends at %.0f cm, table %.0f cm"), *Tag.ToString(), Loudness, Got,
+ RangeM * 100.f),
+ bOk);
+ FProof& J = Rows.AddDefaulted_GetRef();
+ J.Str(TEXT("noise"), Tag.ToString());
+ J.Num(TEXT("loudness"), Loudness);
+ J.Num(TEXT("table_range_m"), RangeM);
+ J.Num(TEXT("attenuation_max_cm"), Got);
+ J.Bool(TEXT("ok"), bOk);
+ };
+ for (const FGameplayTag& Tag : VerseTags::AllNoiseTags())
+ {
+ const FVerseAudibilityRow* Row = Table.FindRow(Tag);
+ if (!TestNotNull(*FString::Printf(TEXT("row for %s"), *Tag.ToString()), Row))
+ {
+ ++Mismatches;
+ continue;
+ }
+ if (Row->bRangeScalesWithLoudness)
+ {
+ for (const EVerseFractureNoise Kind : {EVerseFractureNoise::Breach, EVerseFractureNoise::WallBreak,
+ EVerseFractureNoise::Glass, EVerseFractureNoise::Tile, EVerseFractureNoise::BoltHole})
+ {
+ Check(Tag, Tag == VerseTags::Noise_Drone ? Verse::Destruction::DroneLoudness : Verse::Destruction::FractureLoudness(Kind));
+ }
+ }
+ else
+ {
+ Check(Tag, 1.f);
+ }
+ }
+
+ // The subsystem uses the same table for a remote source.
+ FRig Rig;
+ if (Rig.Make(*this))
+ {
+ TestEqual(TEXT("subsystem footstep range = table"), Rig.Audio->RangeForNoise(TEXT("Noise.Footstep.Sprint"), 1.f), 20.f);
+ TestEqual(TEXT("subsystem drone range = 6 m"), Rig.Audio->RangeForNoise(TEXT("Noise.Drone"), Verse::Destruction::DroneLoudness), 6.f);
+ }
+ TestEqual(TEXT("A19.1 mismatches"), Mismatches, 0);
+
+ FProof Report;
+ Report.Str(TEXT("test"), TEXT("A19.1 F6 symmetry"));
+ Report.Num(TEXT("mismatches"), Mismatches);
+ Report.Raw(TEXT("rows"), FProof::Array(Rows));
+ WriteProof(TEXT("19.1"), TEXT("audibility_symmetry.json"), Report);
+ return true;
+}
+
+// A19.2: shot to sound start within one frame. This rig has no engine tick, so it proves the game-thread
+// half: the play is issued synchronously inside the fire event's broadcast, in the same frame. The
+// mixer half (the voice reaching the next audio render) is Verse.UI.Audio.MixerLoad's shot_to_render_ms.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioShotLatency, "Verse.UI.Audio.ShotLatency", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioShotLatency::RunTest(const FString&)
+{
+ FRig Rig;
+ if (!Rig.Make(*this))
+ {
+ return false;
+ }
+ int64 MaxFrames = 0;
+ for (int32 Shot = 0; Shot < 30; ++Shot)
+ {
+ FVerseFireEvent Fire;
+ Fire.ShooterId = Shot % 2 ? BotId : LocalId;
+ Fire.WeaponId = Shot % 3 ? TEXT("rifle_ar1") : TEXT("pistol_p1");
+ Fire.ShotCounter = uint16(Shot);
+ Fire.Origin = FVector(1500.0 * (Shot % 2), 0.0, 150.0);
+ Fire.Direction = FVector(-1.0, 0.0, 0.0);
+ const int32 Before = Rig.Sink->Plays.Num();
+ const int64 Frame = int64(GFrameCounter);
+ Rig.Hub->OnFire.Broadcast(Fire);
+ TestTrue(FString::Printf(TEXT("shot %d starts a voice at once"), Shot), Rig.Sink->Plays.Num() > Before);
+ if (Rig.Sink->Plays.Num() > Before)
+ {
+ MaxFrames = FMath::Max(MaxFrames, Rig.Sink->Plays[Before].Frame - Frame);
+ }
+ Rig.Advance(0.1f);
+ }
+ TestTrue(TEXT("A19.2 shot to sound start at most 1 frame"), MaxFrames <= 1);
+ TestTrue(TEXT("own shot plays the first-person body"), Rig.Sink->CountOf(TEXT("wpn_rifle_fp_body")) > 0);
+ TestTrue(TEXT("own pistol uses the pistol profile"), Rig.Sink->CountOf(TEXT("wpn_pistol_fp_body")) > 0);
+ TestTrue(TEXT("remote shot at 15 m plays the third-person layers"), Rig.Sink->CountOf(TEXT("wpn_rifle_tp_tail")) > 0);
+ TestTrue(TEXT("a bolt aimed at the listener flies by"), Rig.Sink->CountOf(TEXT("bolt_flyby")) > 0);
+
+ FProof Report;
+ Report.Str(TEXT("test"), TEXT("A19.2 latency"));
+ Report.Num(TEXT("shots"), 30);
+ Report.Num(TEXT("max_frames_shot_to_play"), double(MaxFrames));
+ Report.Str(TEXT("measures"), TEXT("synchronous issue of the play inside the FVerseFireEvent broadcast (no engine tick in this rig); ")
+ TEXT("the time to the audio render is in 19.6/mixer_load.json"));
+ WriteProof(TEXT("19.2"), TEXT("shot_latency.json"), Report);
+ return true;
+}
+
+// A19.3 destruction_storm: never more than 64 voices; shots still get a voice inside the storm.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioDestructionStorm, "Verse.UI.Audio.DestructionStorm", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioDestructionStorm::RunTest(const FString&)
+{
+ FRig Rig;
+ if (!Rig.Make(*this))
+ {
+ return false;
+ }
+ FFakeVerseWall Wall;
+ Wall.WallX = 850.f; // pieces 8.5 m away
+ Wall.Material = EVersePenetrationMaterial::ContainerWall;
+ Rig.Audio->SetPieceQuery(&Wall);
+ FRandomStream Rng(19);
+ int32 Fractures = 0, Shots = 0, ShotsAdmitted = 0;
+ const double Start = FPlatformTime::Seconds();
+ auto Burst = [&](int32 Count)
+ {
+ for (int32 I = 0; I < Count; ++I)
+ {
+ FVerseFractureEvent F;
+ F.PieceIndex = uint16(Rng.RandRange(0, 599));
+ F.FromState = EVersePieceState::Intact;
+ F.ToState = Rng.FRand() < 0.6f ? EVersePieceState::Destroyed : EVersePieceState::Holed;
+ F.Cause = Rng.FRand() < 0.3f ? EVerseFractureCause::Breach : EVerseFractureCause::Bolt;
+ F.Seed = Rng.GetUnsignedInt();
+ Rig.Hub->OnFracture.Broadcast(F);
+ ++Fractures;
+ }
+ };
+ Burst(400); // the breach that opens a whole wall section in one tick
+ for (int32 Tick = 0; Tick < 60 * 8; ++Tick)
+ {
+ Burst(1 + (Tick % 2));
+ if (Tick % 6 == 0)
+ {
+ FVerseFireEvent Fire;
+ Fire.ShooterId = (Tick / 6) % 2 ? BotId : LocalId;
+ Fire.WeaponId = TEXT("rifle");
+ Fire.Origin = FVector(1200.0, 300.0, 150.0);
+ Fire.Direction = FVector(-1.0, 0.0, 0.0);
+ const int32 Before = Rig.Audio->GetEventLog().Num();
+ Rig.Hub->OnFire.Broadcast(Fire);
+ ++Shots;
+ bool bAdmitted = false;
+ const TArray<FVerseAudioLogEntry>& Log = Rig.Audio->GetEventLog();
+ for (int32 I = FMath::Max(0, Before); I < Log.Num(); ++I)
+ {
+ bAdmitted |= Log[I].CueId.ToString().StartsWith(TEXT("wpn_")) && Log[I].bAdmitted;
+ }
+ ShotsAdmitted += bAdmitted ? 1 : 0;
+ }
+ TestTrue(TEXT("voices never above 64"), Rig.Audio->GetActiveVoices() <= 64);
+ Rig.Audio->Tick(1.f / 60.f);
+ }
+ const double GameThreadMs = (FPlatformTime::Seconds() - Start) * 1000.0 / (60 * 8);
+ TestTrue(TEXT("A19.3 peak voices at most 64"), Rig.Audio->GetPeakVoices() <= 64);
+ TestEqual(TEXT("every shot gets a voice inside the storm"), ShotsAdmitted, Shots);
+
+ FProof Report;
+ Report.Str(TEXT("test"), TEXT("A19.3 load, destruction_storm"));
+ Report.Num(TEXT("fractures"), Fractures);
+ Report.Num(TEXT("shots"), Shots);
+ Report.Num(TEXT("shots_admitted"), ShotsAdmitted);
+ Report.Num(TEXT("peak_voices"), Rig.Audio->GetPeakVoices());
+ Report.Num(TEXT("max_voices"), 64);
+ Report.Num(TEXT("subsystem_game_thread_ms_per_tick"), GameThreadMs);
+ Report.Str(TEXT("audio_thread_ms"), TEXT("measured with the audio mixer by Verse.UI.Audio.MixerLoad (19.6/mixer_load.json)"));
+ WriteProof(TEXT("19.6"), TEXT("destruction_storm.json"), Report);
+ return true;
+}
+
+// A19.5 dormant: muted within 100 ms of hide (at once), back with a short fade on show.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioDormant, "Verse.UI.Audio.Dormant", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioDormant::RunTest(const FString&)
+{
+ FRig Rig;
+ if (!Rig.Make(*this))
+ {
+ return false;
+ }
+ Rig.Audio->SetAmbience(EVerseAmbience::Hangar);
+ TestEqual(TEXT("visible: full volume"), Rig.Sink->Master, 1.f);
+ Rig.Audio->SetDormant(true);
+ TestEqual(TEXT("A19.5 muted at the hide call (0 ms)"), Rig.Sink->Master, 0.f);
+ Rig.Advance(0.1f);
+ TestEqual(TEXT("still muted 100 ms later"), Rig.Sink->Master, 0.f);
+ Rig.Audio->SetDormant(false);
+ TestTrue(TEXT("unmute fades in, no jump"), Rig.Sink->Master < 0.5f);
+ Rig.Advance(0.2f);
+ TestEqual(TEXT("back to full within the fade"), Rig.Sink->Master, 1.f);
+ Rig.Audio->SetUiSoundEnabled(false);
+ TestEqual(TEXT("ui_sound off silences the Verse (Z-14)"), Rig.Sink->Master, 0.f);
+ Rig.Audio->SetUiSoundEnabled(true);
+ Rig.Audio->SetUserVolume(0.f);
+ TestEqual(TEXT("volume 0 silences (Z-14)"), Rig.Sink->Master, 0.f);
+ return true;
+}
+
+// 19.7 occlusion: a wall muffles a source behind it; a hole or breach opens it again.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioOcclusion, "Verse.UI.Audio.Occlusion", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioOcclusion::RunTest(const FString&)
+{
+ const FVerseAudioMixSettings Mix;
+ FFakeVerseWall Wall;
+ TArray<FProof> Rows;
+ auto Row = [&Rows](const TCHAR* Case, const FVerseOcclusion& Occ)
+ {
+ FProof& J = Rows.AddDefaulted_GetRef();
+ J.Str(TEXT("case"), Case);
+ J.Num(TEXT("loss_db"), Occ.LossDb);
+ J.Num(TEXT("lowpass_hz"), Occ.LowpassHz);
+ J.Num(TEXT("pieces"), Occ.Pieces);
+ };
+ const FVector Listener(0.0, 0.0, 150.0);
+ const FVector Behind(900.0, 0.0, 150.0);
+ const FVector Front(300.0, 0.0, 150.0);
+
+ FVerseOcclusion Occ = Verse::Audio::TraceOcclusion(&Wall, Listener, Behind, Mix);
+ Row(TEXT("sheet metal wall intact"), Occ);
+ TestEqual(TEXT("intact sheet metal: -9 dB"), Occ.LossDb, -9.f);
+ TestEqual(TEXT("intact sheet metal: 2.5 kHz low-pass"), Occ.LowpassHz, 2500.f);
+ Occ = Verse::Audio::TraceOcclusion(&Wall, Listener, Front, Mix);
+ Row(TEXT("source in front of the wall"), Occ);
+ TestTrue(TEXT("same side: open"), Occ.IsOpen());
+ Wall.State = EVersePieceState::Holed;
+ Occ = Verse::Audio::TraceOcclusion(&Wall, Listener, Behind, Mix);
+ Row(TEXT("sheet metal wall holed"), Occ);
+ TestTrue(TEXT("a hole opens the path"), Occ.IsOpen());
+ Wall.State = EVersePieceState::Intact;
+ Wall.Material = EVersePenetrationMaterial::Concrete;
+ Occ = Verse::Audio::TraceOcclusion(&Wall, Listener, Behind, Mix);
+ Row(TEXT("concrete intact"), Occ);
+ TestEqual(TEXT("concrete: -20 dB"), Occ.LossDb, -20.f);
+ Wall.Material = EVersePenetrationMaterial::CatwalkGrating;
+ Occ = Verse::Audio::TraceOcclusion(&Wall, Listener, Behind, Mix);
+ Row(TEXT("grating"), Occ);
+ TestTrue(TEXT("grating barely occludes"), Occ.LossDb >= -1.f);
+ TestTrue(TEXT("no query: open"), Verse::Audio::TraceOcclusion(nullptr, Listener, Behind, Mix).IsOpen());
+
+ // In the subsystem: a one-shot behind the wall is muffled; a loop opens up after a breach.
+ FRig Rig;
+ if (Rig.Make(*this))
+ {
+ Wall.Material = EVersePenetrationMaterial::SheetMetal;
+ Wall.State = EVersePieceState::Intact;
+ Rig.Audio->SetPenetrationQuery(&Wall);
+ Rig.Audio->SetListenerOverride(Listener);
+ Rig.Audio->PlayKnifeSwing(BotId, FVector(560.0, 0.0, 150.0));
+ const FVerseAudioLogEntry* Swing = LastOf(*Rig.Audio, TEXT("mel_knife_swing"));
+ TestTrue(TEXT("remote knife behind sheet metal: -9 dB in the log"),
+ Swing && Swing->bAdmitted && FMath::IsNearlyEqual(Swing->OcclusionLossDb, -9.f));
+ Rig.Audio->StartDroneLoop(1, true, FVector(560.0, 0.0, 150.0));
+ const FVerseAudioLogEntry* Weld = LastOf(*Rig.Audio, TEXT("drn_weld"));
+ TestTrue(TEXT("drone weld behind the wall starts muffled"), Weld && Weld->bAdmitted && Weld->LowpassHz <= 2500.f);
+ const FFakeVerseAudioSink::FPlay* WeldPlay = Rig.Sink->LastPlayOf(TEXT("drn_weld"));
+ if (TestNotNull(TEXT("weld voice started"), WeldPlay))
+ {
+ const int32 Handle = WeldPlay->Handle;
+ const float Base = WeldPlay->Request.Volume;
+ const float Sheet = Verse::Audio::DbToGain(-9.f);
+ TestTrue(TEXT("the occlusion gain rides on the fader, not the multiplier"),
+ FMath::IsNearlyEqual(WeldPlay->Request.Fader, Sheet, 1e-4f));
+ TestTrue(TEXT("logged level = multiplier x fader"),
+ Weld && FMath::IsNearlyEqual(Weld->Volume, Base * Sheet, 1e-4f));
+ Rig.Advance(0.6f); // two re-traces, wall still intact
+ TestTrue(TEXT("re-trace keeps the heard level (base and occlusion counted once)"),
+ FMath::IsNearlyEqual(Rig.Sink->EffectiveVolume(Handle), Base * Sheet, 1e-4f));
+ Wall.State = EVersePieceState::Breached;
+ Rig.Advance(0.3f);
+ TestTrue(TEXT("after the breach the loop re-traces and opens"), Rig.Sink->VoiceLowpass.FindRef(Handle) >= 19999.f);
+ TestTrue(TEXT("after the breach the loop is back at its full base level"),
+ FMath::IsNearlyEqual(Rig.Sink->EffectiveVolume(Handle), Base, 1e-4f));
+ Wall.State = EVersePieceState::Intact; // repaired: muffled again, at the same level as at the start
+ Rig.Advance(0.3f);
+ TestTrue(TEXT("after a repair the loop is muffled again at base x occlusion"),
+ FMath::IsNearlyEqual(Rig.Sink->EffectiveVolume(Handle), Base * Sheet, 1e-4f));
+ }
+ Rig.Audio->StopDroneLoop(1);
+ TestEqual(TEXT("loop stopped"), Rig.Audio->GetLoopCount(), 0);
+ }
+
+ FProof Report;
+ Report.Str(TEXT("test"), TEXT("19.7 occlusion"));
+ Report.Raw(TEXT("cases"), FProof::Array(Rows));
+ WriteProof(TEXT("19.7"), TEXT("occlusion.json"), Report);
+ return true;
+}
+
+// F6 in practice: the person hears others only where the bot would hear them.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioFairness, "Verse.UI.Audio.Fairness", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioFairness::RunTest(const FString&)
+{
+ FRig Rig;
+ if (!Rig.Make(*this))
+ {
+ return false;
+ }
+ const int32 Before = Rig.Sink->Plays.Num();
+ Rig.Audio->PlayFootstep(BotId, EVerseFootSurface::Metal, EVerseGait::CrouchWalk, FVector(200.0, 0.0, 0.0));
+ Rig.Audio->PlayFoley(BotId, EVerseFoley::LeanIn, FVector(200.0, 0.0, 0.0));
+ Rig.Audio->PlayEquip(BotId, TEXT("rifle"));
+ TestEqual(TEXT("crouch steps, lean and equip of the bot are silent"), Rig.Sink->Plays.Num(), Before);
+ Rig.Audio->PlayFootstep(BotId, EVerseFootSurface::Concrete, EVerseGait::Run, FVector(900.0, 0.0, 0.0));
+ TestEqual(TEXT("run step at 9 m (range 10 m) plays"), Rig.Sink->Plays.Num(), Before + 1);
+ Rig.Audio->PlayFootstep(BotId, EVerseFootSurface::Concrete, EVerseGait::Run, FVector(1100.0, 0.0, 0.0));
+ TestEqual(TEXT("run step at 11 m is out of range"), Rig.Sink->Plays.Num(), Before + 1);
+ Rig.Audio->PlayFootstep(BotId, EVerseFootSurface::Concrete, EVerseGait::Sprint, FVector(1900.0, 0.0, 0.0));
+ TestEqual(TEXT("sprint step at 19 m (range 20 m) plays"), Rig.Sink->Plays.Num(), Before + 2);
+ const FVerseAudioLogEntry* Step = LastOf(*Rig.Audio, TEXT("fs_concrete"));
+ TestTrue(TEXT("the sprint step uses the 20 m range"), Step && FMath::IsNearlyEqual(Step->RangeM, 20.f));
+ Rig.Audio->PlayFootstep(LocalId, EVerseFootSurface::Metal, EVerseGait::CrouchWalk, FVector::ZeroVector);
+ TestEqual(TEXT("own crouch steps play for the person"), Rig.Sink->Plays.Num(), Before + 3);
+
+ // Bolt impact of the opponent: heard within 3 m only (Noise.Impact); own impacts are shooter feedback.
+ FVersePenetrationEvent Pen;
+ Pen.ShooterId = BotId;
+ Pen.MaterialWireId = uint8(EVersePenetrationMaterial::Concrete);
+ Pen.Entry = FVector(800.0, 0.0, 0.0);
+ const int32 Mid = Rig.Sink->Plays.Num();
+ Rig.Hub->OnPenetration.Broadcast(Pen);
+ TestEqual(TEXT("opponent's impact 8 m away: not heard"), Rig.Sink->Plays.Num(), Mid);
+ Pen.ShooterId = LocalId;
+ Rig.Hub->OnPenetration.Broadcast(Pen);
+ TestEqual(TEXT("own impact 8 m away: heard"), Rig.Sink->Plays.Num(), Mid + 1);
+
+ // The bot's reload (the host gets its server-raised event): at the bot, within Noise.Reload's 7 m only.
+ TOptional<FVector> BotAt;
+ Rig.Audio->SetPlayerLocationResolver([&BotAt](int32 Id) { return Id == BotId ? BotAt : TOptional<FVector>(); });
+ FVerseReloadEvent Reload;
+ Reload.PlayerId = BotId;
+ Reload.WeaponId = TEXT("rifle");
+ Reload.bTactical = true;
+ const FName ReloadCue(TEXT("rld_rifle_tactical"));
+ int32 Count = Rig.Sink->CountOf(ReloadCue);
+ Rig.Hub->OnReload.Broadcast(Reload);
+ TestEqual(TEXT("bot reload without a known pawn: silent, never at the world origin"), Rig.Sink->CountOf(ReloadCue), Count);
+ BotAt = FVector(500.0, 0.0, 0.0);
+ Rig.Hub->OnReload.Broadcast(Reload);
+ const FFakeVerseAudioSink::FPlay* Near = Rig.Sink->LastPlayOf(ReloadCue);
+ TestEqual(TEXT("bot reload at 5 m: heard"), Rig.Sink->CountOf(ReloadCue), Count + 1);
+ TestTrue(TEXT("bot reload plays at the bot, located"),
+ Near && Near->Request.bSpatial && Near->Request.Location.Equals(FVector(500.0, 0.0, 0.0)));
+ const FVerseAudioLogEntry* ReloadLog = LastOf(*Rig.Audio, ReloadCue);
+ TestTrue(TEXT("bot reload uses the 7 m Noise.Reload range"), ReloadLog && FMath::IsNearlyEqual(ReloadLog->RangeM, 7.f));
+ const int32 FirstHandle = Near ? Near->Handle : 0;
+ BotAt = FVector(900.0, 0.0, 0.0);
+ Rig.Hub->OnReload.Broadcast(Reload);
+ TestEqual(TEXT("bot reload at 9 m: not heard (the bot hears the person's at 7 m too)"), Rig.Sink->CountOf(ReloadCue), Count + 1);
+ TestTrue(TEXT("a new reload stops the player's previous reload voice"), Rig.Sink->Stops.Contains(FirstHandle));
+
+ Reload.PlayerId = LocalId;
+ Rig.Hub->OnReload.Broadcast(Reload);
+ const FFakeVerseAudioSink::FPlay* OwnFirst = Rig.Sink->LastPlayOf(ReloadCue);
+ TestTrue(TEXT("own reload plays for the person, not located"), OwnFirst && !OwnFirst->Request.bSpatial);
+ const int32 OwnHandle = OwnFirst ? OwnFirst->Handle : 0;
+ Reload.bTactical = false;
+ Rig.Hub->OnReload.Broadcast(Reload);
+ TestTrue(TEXT("a second own reload stops the first voice"), Rig.Sink->Stops.Contains(OwnHandle));
+ return true;
+}
+
+// Parity Z-15: never the same take twice in a row; every take gets used.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioVariants, "Verse.UI.Audio.VariantNoRepeat", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioVariants::RunTest(const FString&)
+{
+ FVerseVariantPicker Picker(3);
+ int32 Last = INDEX_NONE;
+ TSet<int32> Seen;
+ bool bRepeat = false;
+ for (int32 I = 0; I < 200; ++I)
+ {
+ const int32 V = Picker.Pick(TEXT("fs_metal"), 4);
+ bRepeat |= V == Last;
+ Seen.Add(V);
+ Last = V;
+ }
+ TestFalse(TEXT("no consecutive repeat over 200 plays"), bRepeat);
+ TestEqual(TEXT("all 4 takes used"), Seen.Num(), 4);
+ TestEqual(TEXT("one take: always 0"), Picker.Pick(TEXT("amb_hangar"), 1), 0);
+ return true;
+}
+
+// Voice budget rules on their own.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioBudget, "Verse.UI.Audio.VoiceBudget", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioBudget::RunTest(const FString&)
+{
+ FVerseVoiceBudget Budget;
+ Budget.Max = 3;
+ auto Add = [&Budget](int32 Handle, FName Cue, float Priority, double Start, double End)
+ {
+ Budget.Add({Handle, Cue, Priority, Start, End});
+ };
+ Add(1, TEXT("a"), 2.f, 0.0, 5.0);
+ Add(2, TEXT("b"), 5.f, 0.1, 5.0);
+ Add(3, TEXT("c"), 1.f, 0.2, -1.0);
+ FVerseVoiceBudget::FDecision D = Budget.Request(TEXT("d"), 3.f, 4, 1.0);
+ TestTrue(TEXT("full: a higher priority steals"), D.bAdmit && D.StealHandle == 3);
+ D = Budget.Request(TEXT("d"), 0.5f, 4, 1.0);
+ TestFalse(TEXT("full: a lower priority is refused"), D.bAdmit);
+ D = Budget.Request(TEXT("a"), 0.1f, 1, 1.0);
+ TestTrue(TEXT("over its own limit a cue replaces its oldest voice"), D.bAdmit && D.StealHandle == 1);
+ Budget.Prune(6.0);
+ TestEqual(TEXT("finished voices are pruned; loops stay"), Budget.Num(), 1);
+ return true;
+}
+
+// Mix: the Verse master limiter is built with the mix.json settings.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioLimiter, "Verse.UI.Audio.Limiter", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioLimiter::RunTest(const FString&)
+{
+ FVerseAudioMixSettings Mix;
+ Mix.LimiterThresholdDb = -2.5f;
+ USoundEffectSubmixPreset* Preset = FVerseEngineAudioSink::MakeLimiterPreset(GetTransientPackage(), Mix);
+ if (!TestNotNull(TEXT("dynamics processor preset (AudioMixer loaded)"), Preset))
+ {
+ return false;
+ }
+ const FStructProperty* SettingsProp = FindFProperty<FStructProperty>(Preset->GetClass(), TEXT("Settings"));
+ const FFloatProperty* Threshold = SettingsProp ? FindFProperty<FFloatProperty>(SettingsProp->Struct, TEXT("ThresholdDb")) : nullptr;
+ if (TestNotNull(TEXT("threshold property"), Threshold))
+ {
+ TestEqual(TEXT("threshold from mix.json"), Threshold->GetPropertyValue_InContainer(SettingsProp->ContainerPtrToValuePtr<void>(Preset)), -2.5f);
+ }
+ return true;
+}
+
+// A19.6 and the import: DA_AudioCues holds every cue of cues.json, each variant set, each licence cited.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseAudioShippedCues, "Verse.UI.Audio.ShippedCues", VERSE_AUDIO_TEST_FLAGS)
+bool FVerseAudioShippedCues::RunTest(const FString&)
+{
+ // Headless test runs create no audio device, so the default (BINKA) decoder is never
+ // registered and loading a sound wave would fail an engine ensure.
+ FModuleManager::Get().LoadModule(TEXT("BinkAudioDecoder"));
+ const UVerseAudioCueSet* Set = LoadObject<UVerseAudioCueSet>(nullptr, UVerseAudioCueSet::DefaultAssetPath);
+ if (!TestNotNull(TEXT("DA_AudioCues is imported"), Set))
+ {
+ return false;
+ }
+ FString CuesJson;
+ const FString Path = FPaths::Combine(FPaths::ProjectDir(), TEXT("Data/audio/cues.json"));
+ if (!TestTrue(TEXT("cues.json readable"), FFileHelper::LoadFileToString(CuesJson, *Path)))
+ {
+ return false;
+ }
+ // One chunk per cue object; the fields read here are flat strings and numbers (verse.audio.cues/1).
+ auto Field = [](const FString& Chunk, const TCHAR* Pattern) -> FString
+ {
+ FRegexMatcher M(FRegexPattern(Pattern), Chunk);
+ return M.FindNext() ? M.GetCaptureGroup(1) : FString();
+ };
+ TArray<FString> Chunks;
+ CuesJson.ParseIntoArray(Chunks, TEXT("\"id\": \""), true);
+ int32 Problems = 0;
+ int32 Sounds = 0;
+ int32 Listed = 0;
+ for (int32 I = 1; I < Chunks.Num(); ++I)
+ {
+ const FString& Chunk = Chunks[I];
+ const FName Id(*Chunk.Left(Chunk.Find(TEXT("\""))));
+ ++Listed;
+ const FVerseAudioCue* Cue = Set->FindCue(Id);
+ if (!TestNotNull(*FString::Printf(TEXT("cue %s in DA_AudioCues"), *Id.ToString()), Cue))
+ {
+ ++Problems;
+ continue;
+ }
+ const int32 Want = FCString::Atoi(*Field(Chunk, TEXT("\"variants\": (\\d+)")));
+ const FString Licence = Field(Chunk, TEXT("\"licence\": \"([^\"]*)\""));
+ const FString Noise = Field(Chunk, TEXT("\"noise\": \"([^\"]*)\""));
+ bool bOk = Want > 0 && Cue->Variants.Num() == Want;
+ for (const TObjectPtr<USoundBase>& Sound : Cue->Variants)
+ {
+ bOk &= Sound != nullptr;
+ Sounds += Sound ? 1 : 0;
+ }
+ bOk &= Cue->Licence == Licence && (Licence == TEXT("own") || Licence.StartsWith(TEXT("cc0:")));
+ bOk &= Noise.IsEmpty() || Verse::Audio::NoiseTagByName(FName(*Noise)).IsValid();
+ TestTrue(*FString::Printf(TEXT("cue %s: %d variants, licence %s, noise tag valid"), *Id.ToString(), Want, *Licence), bOk);
+ Problems += bOk ? 0 : 1;
+ }
+ TestTrue(TEXT("cues.json lists cues"), Listed > 0);
+ TestEqual(TEXT("DA_AudioCues has exactly the cues of cues.json"), Set->Cues.Num(), Listed);
+ TestEqual(TEXT("A19.6 cue problems"), Problems, 0);
+
+ FProof Report;
+ Report.Str(TEXT("test"), TEXT("A19.6 licence (asset side)"));
+ Report.Num(TEXT("cues"), Set->Cues.Num());
+ Report.Num(TEXT("sound_waves"), Sounds);
+ Report.Num(TEXT("problems"), Problems);
+ WriteProof(TEXT("19.9"), TEXT("shipped_cues.json"), Report);
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioCueSet.h b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioCueSet.h
new file mode 100644
index 0000000000..1f6f4f707a
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioCueSet.h
@@ -0,0 +1,72 @@
+#pragma once
+
+#include "Audio/VerseAudioTypes.h"
+#include "CoreMinimal.h"
+#include "Engine/DataAsset.h"
+
+#include "VerseAudioCueSet.generated.h"
+
+class UVerseAudibilityTable;
+
+/**
+ * DA_AudioCues: every Verse cue, the mix and the occlusion table. Written by
+ * art/verse/audio/import_audio.py from unreal/Verse/Data/audio/{cues,mix,occlusion}.json.
+ */
+UCLASS(BlueprintType)
+class VERSEUI_API UVerseAudioCueSet : public UPrimaryDataAsset
+{
+ GENERATED_BODY()
+
+public:
+ /** Object path of the shipped asset. */
+ static const TCHAR* DefaultAssetPath;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ TArray<FVerseAudioCue> Cues;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ FVerseAudioMixSettings Mix;
+
+ /**
+ * Weapon sound profiles (cue prefix wpn_<profile>_, rld_<profile>_, eqp_<profile>). A weapon id
+ * uses the first profile its name contains, else DefaultWeaponProfile.
+ */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ TArray<FName> WeaponProfiles;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ FName DefaultWeaponProfile = TEXT("rifle");
+
+ /**
+ * DA_Audibility (Core). Unset: the project's DA_Audibility asset, found the way the bot finds
+ * it (FindSharedAudibility); only when the project has none, the contract table of bot.md 3.2.
+ */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ TObjectPtr<UVerseAudibilityTable> Audibility;
+
+ const FVerseAudioCue* FindCue(FName CueId) const;
+
+ /** The audibility table in use: Audibility, else the shared DA_Audibility, else the contract rows. */
+ const UVerseAudibilityTable& GetAudibility() const;
+
+ /** Where Core keeps DA_Audibility. */
+ static const TCHAR* SharedAudibilityPath;
+
+ /**
+ * The project's one DA_Audibility: the asset at SharedAudibilityPath, else the first
+ * UVerseAudibilityTable asset the asset registry knows. nullptr when the project has none.
+ */
+ static const UVerseAudibilityTable* FindSharedAudibility();
+
+ FName WeaponProfileFor(FName WeaponId) const;
+
+ /** Rebuild the id index after Cues changed (import, tests). */
+ void RebuildIndex();
+
+ virtual void PostLoad() override;
+
+private:
+ mutable TMap<FName, int32> Index;
+ mutable TWeakObjectPtr<const UVerseAudibilityTable> SharedAudibility;
+ mutable bool bSearchedSharedAudibility = false;
+};
diff --git a/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioMath.h b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioMath.h
new file mode 100644
index 0000000000..0bca38c23f
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioMath.h
@@ -0,0 +1,137 @@
+#pragma once
+
+#include "Audio/VerseAudioTypes.h"
+#include "CoreMinimal.h"
+#include "Destruction/VerseDestructionTypes.h"
+#include "GameplayTagContainer.h"
+#include "Math/RandomStream.h"
+
+class IVersePenetrationQuery;
+struct FSoundAttenuationSettings;
+
+// Pure audio rules of WP19: the distance law, attenuation built from DA_Audibility, the voice
+// budget, the no-repeat variant picker and occlusion through destructible pieces. No engine
+// audio device needed, so every rule is tested headless (-nullrhi -nosound).
+
+namespace Verse::Audio
+{
+ VERSEUI_API float DbToGain(float Db);
+
+ /** The Noise.* tag of bot.md 3.2 with this name; an invalid tag for any other name. */
+ VERSEUI_API FGameplayTag NoiseTagByName(FName TagName);
+
+ /**
+ * Gain at a distance: 1 inside ReferenceM, then (ReferenceM / d) ^ Rolloff floored at FloorDb, and
+ * over the last (1 - FadeStartFraction) of a finite range a smoothstep fade to exactly 0 at RangeM.
+ * RangeM <= 0 means no range (no fade). Python twin: art/verse/audio/reference_mix.py distance_gain.
+ */
+ VERSEUI_API float DistanceGain(float DistanceM, float RangeM, const FVerseAudioMixSettings& Mix);
+
+ /** Attenuation end in cm for a range: RangeM x 100, capped at the audio engine's world maximum. */
+ VERSEUI_API float MaxAttenuationDistanceCm(float RangeM);
+
+ /** Sphere attenuation that ends exactly at MaxAttenuationDistanceCm(RangeM), shaped by DistanceGain. */
+ VERSEUI_API void BuildAttenuation(float RangeM, const FVerseAudioMixSettings& Mix, FSoundAttenuationSettings& Out);
+
+ /** Weight of the far shot layer at a distance (smoothstep from ShotNearFullM to ShotFarFullM). */
+ VERSEUI_API float ShotFarWeight(float DistanceM, const FVerseAudioMixSettings& Mix);
+
+ /** Noise.Fracture loudness of a piece change (destruction.md 6.2); 0 for changes that make no noise. */
+ VERSEUI_API float FractureLoudness(EVersePieceState From, EVersePieceState To, EVerseFractureCause Cause,
+ EVersePenetrationMaterial Material);
+
+ /** Destruction cue of a piece material (dst_<class>). */
+ VERSEUI_API FName DestructionCueFor(EVersePenetrationMaterial Material);
+
+ /** Debris settle cue of a piece material (dst_settle_<metal|glass|dust>). */
+ VERSEUI_API FName SettleCueFor(EVersePenetrationMaterial Material);
+
+ /** Impact cue of a penetration-table material (imp_<material>). */
+ VERSEUI_API FName ImpactCueFor(EVersePenetrationMaterial Material);
+
+ /**
+ * Closest approach of a bolt (origin, unit direction, cm) to the listener: distance in m and the
+ * time after the shot in s at BoltSpeedMps. False when the closest point is behind the muzzle.
+ */
+ VERSEUI_API bool BoltClosestApproach(const FVector& Origin, const FVector& Direction, const FVector& Listener,
+ float BoltSpeedMps, float& OutDistanceM, float& OutTimeS, FVector& OutPoint);
+}
+
+/** Sound through pieces between listener and source. */
+struct VERSEUI_API FVerseOcclusion
+{
+ float LossDb = 0.f;
+ float LowpassHz = 20000.f;
+ int32 Pieces = 0;
+
+ bool IsOpen() const { return Pieces == 0; }
+ float Gain() const { return Verse::Audio::DbToGain(LossDb); }
+};
+
+namespace Verse::Audio
+{
+ /** Occlusion of the pieces a trace entered: losses add (capped), the lowest low-pass wins. */
+ VERSEUI_API FVerseOcclusion OcclusionFromHits(TConstArrayView<FVersePenetrationHit> Hits, const FVerseAudioMixSettings& Mix);
+
+ /**
+ * Trace listener to source through the destruction query. The query honours holes and breaches
+ * (destruction.md 5), so an opened piece no longer occludes. A null query means an open path.
+ */
+ VERSEUI_API FVerseOcclusion TraceOcclusion(const IVersePenetrationQuery* Query, const FVector& Listener,
+ const FVector& Source, const FVerseAudioMixSettings& Mix);
+}
+
+/** A voice the budget tracks. EndTime < 0: a loop that ends only on stop. */
+struct FVerseVoice
+{
+ int32 Handle = 0;
+ FName CueId;
+ float Priority = 1.f;
+ double StartTime = 0.0;
+ double EndTime = 0.0;
+};
+
+/**
+ * Voice budget (A19.3): at most Max voices. A cue over its own MaxVoices replaces its oldest voice;
+ * over the global cap a play steals the lowest-priority, oldest voice if that one's priority is not
+ * higher than the new play's, else it is refused.
+ */
+class VERSEUI_API FVerseVoiceBudget
+{
+public:
+ struct FDecision
+ {
+ bool bAdmit = false;
+ /** Voice to stop for this play, 0 = none. */
+ int32 StealHandle = 0;
+ };
+
+ int32 Max = 64;
+
+ FDecision Request(FName CueId, float Priority, int32 CueMaxVoices, double Now);
+ void Add(const FVerseVoice& Voice);
+ void Remove(int32 Handle);
+ void Prune(double Now);
+ void Reset() { Voices.Reset(); }
+ int32 Num() const { return Voices.Num(); }
+ int32 NumOf(FName CueId) const;
+ const TArray<FVerseVoice>& GetVoices() const { return Voices; }
+
+private:
+ TArray<FVerseVoice> Voices;
+};
+
+/** Picks a variant that differs from the last one of the same cue (parity Z-15). Deterministic per seed. */
+class VERSEUI_API FVerseVariantPicker
+{
+public:
+ explicit FVerseVariantPicker(int32 Seed = 1907) : Stream(Seed) {}
+
+ int32 Pick(FName CueId, int32 Count);
+ float Range(const FVector2D& MinMax) { return float(MinMax.X + (MinMax.Y - MinMax.X) * Stream.GetFraction()); }
+ void Reset(int32 Seed) { Stream.Initialize(Seed); Last.Reset(); }
+
+private:
+ FRandomStream Stream;
+ TMap<FName, int32> Last;
+};
diff --git a/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioSink.h b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioSink.h
new file mode 100644
index 0000000000..4c71e80856
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioSink.h
@@ -0,0 +1,52 @@
+#pragma once
+
+#include "CoreMinimal.h"
+
+enum class EVerseAudioBus : uint8;
+class USoundBase;
+class USoundAttenuation;
+class UWorld;
+struct FVerseAudioMixSettings;
+
+/** One voice to start. */
+struct FVerseAudioPlayRequest
+{
+ FName CueId;
+ USoundBase* Sound = nullptr;
+ bool bSpatial = false;
+ FVector Location = FVector::ZeroVector;
+ USoundAttenuation* Attenuation = nullptr;
+ /** The voice's volume multiplier: cue volume x gain x bus x master. Never changes after the start. */
+ float Volume = 1.f;
+ /**
+ * The voice's fader at the start: the occlusion gain. Only the fader moves later
+ * (SetVoiceOcclusion), so the heard level is always Volume x the current fader.
+ */
+ float Fader = 1.f;
+ float Pitch = 1.f;
+ float LowpassHz = 20000.f;
+};
+
+/**
+ * Where the audio subsystem sends its voices. The engine sink plays them through audio components
+ * on the Verse master submix; tests use a recording fake (Private/Tests/Audio/Fakes).
+ */
+class IVerseAudioSink
+{
+public:
+ virtual ~IVerseAudioSink() = default;
+
+ /** Builds the master submix with its limiter; false when there is no audio device. */
+ virtual bool Initialize(UWorld* World, const FVerseAudioMixSettings& Mix) = 0;
+ /** Starts a voice under the given handle (handles come from the subsystem). */
+ virtual void Play(int32 Handle, const FVerseAudioPlayRequest& Request) = 0;
+ virtual void Stop(int32 Handle, float FadeOutS) = 0;
+ virtual void SetVoiceLocation(int32 Handle, const FVector& Location) = 0;
+ /** Occlusion of a running voice: sets its fader to Gain (not its multiplier) and its low-pass. */
+ virtual void SetVoiceOcclusion(int32 Handle, float Gain, float LowpassHz) = 0;
+ /** Linear gain of the whole Verse (master gain x user volume x mute). */
+ virtual void SetMasterVolume(float Volume) = 0;
+ /** Route a sound to its bus submix (a child of the Verse master submix). */
+ virtual void Route(USoundBase* Sound, EVerseAudioBus Bus) = 0;
+ virtual void Shutdown() = 0;
+};
diff --git a/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioSubsystem.h b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioSubsystem.h
new file mode 100644
index 0000000000..49ac55359e
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioSubsystem.h
@@ -0,0 +1,192 @@
+#pragma once
+
+#include "Audio/VerseAudioMath.h"
+#include "Audio/VerseAudioSink.h"
+#include "Audio/VerseAudioTypes.h"
+#include "Combat/VerseCombatTypes.h"
+#include "CoreMinimal.h"
+#include "Destruction/VerseDestructionTypes.h"
+#include "Subsystems/WorldSubsystem.h"
+
+#include "VerseAudioSubsystem.generated.h"
+
+class IVersePenetrationQuery;
+class IVersePieceQuery;
+class USoundAttenuation;
+class UVerseAudioCueSet;
+class UVerseEventHub;
+
+/**
+ * The Verse's sound (WP19). Listens to the event hub (fire, hit, penetration, reload, gadget,
+ * fracture, finisher) and plays layered, located cues; other packages call the Play* functions for
+ * sounds that have no hub event (footsteps, foley, drones, decks, UI).
+ *
+ * Fairness F6: a sound of anyone but the listener is attenuated to exactly the DA_Audibility range
+ * of its Noise.* tag, the range the bot hears it at; sounds the bot cannot hear (crouch steps,
+ * lean, equip) play only for their own player.
+ */
+UCLASS()
+class VERSEUI_API UVerseAudioSubsystem : public UTickableWorldSubsystem
+{
+ GENERATED_BODY()
+
+public:
+ static UVerseAudioSubsystem* Get(const UObject* WorldContextObject);
+
+ virtual bool ShouldCreateSubsystem(UObject* Outer) const override;
+ virtual void Initialize(FSubsystemCollectionBase& Collection) override;
+ virtual void Deinitialize() override;
+ virtual void Tick(float DeltaTime) override;
+ virtual TStatId GetStatId() const override;
+ virtual bool IsTickableWhenPaused() const override { return true; }
+
+ // --- setup (integration and tests)
+
+ /** Cue set to use; nullptr loads DA_AudioCues. */
+ void SetCueSet(UVerseAudioCueSet* InCueSet);
+ UVerseAudioCueSet* GetCueSet() const { return CueSet; }
+ /** Replace the output (tests); nullptr restores the engine sink. */
+ void SetSink(TSharedPtr<IVerseAudioSink> InSink);
+ /** Occlusion source (VerseDestruction); nullptr = open paths. Not owned. */
+ void SetPenetrationQuery(const IVersePenetrationQuery* Query) { PenetrationQuery = Query; }
+ /** Piece truth for fracture sounds (material, location); nullptr = the null stub. Not owned. */
+ void SetPieceQuery(const IVersePieceQuery* Query) { PieceQuery = Query; }
+ /** The listener's player state id; INDEX_NONE resolves it from the first local player controller. */
+ void SetLocalPlayerId(int32 PlayerId) { LocalPlayerIdOverride = PlayerId; }
+ int32 GetLocalPlayerId() const;
+ void SetListenerOverride(TOptional<FVector> Location) { ListenerOverride = Location; }
+ /**
+ * Where a player's pawn is (remote reloads); unset resolves it through the game state's player
+ * array. A resolver that returns no location means the player has no pawn.
+ */
+ void SetPlayerLocationResolver(TFunction<TOptional<FVector>(int32)> Resolver) { PlayerLocationResolver = MoveTemp(Resolver); }
+ TOptional<FVector> FindPlayerLocation(int32 PlayerId) const;
+ FVector GetListenerLocation() const;
+
+ // --- lifecycle and settings
+
+ /** Hidden, minimised or focus back to the app (architecture 1.2): mute now; unmute fades in. */
+ void SetDormant(bool bDormant);
+ bool IsDormant() const { return bDormant; }
+ /** settings.changed {ui_sound}: off silences the whole Verse (parity Z-14). */
+ void SetUiSoundEnabled(bool bEnabled);
+ /** User volume 0..1 (parity Z-14). */
+ void SetUserVolume(float Volume);
+ /** Linear master volume handed to the sink right now. */
+ float GetMasterVolume() const { return MasterVolume; }
+
+ // --- sounds without a hub event
+
+ void PlayFootstep(int32 PlayerId, EVerseFootSurface Surface, EVerseGait Gait, const FVector& Location);
+ void PlayFoley(int32 PlayerId, EVerseFoley Foley, const FVector& Location);
+ void PlayEquip(int32 PlayerId, FName WeaponId);
+ void PlayKnifeSwing(int32 PlayerId, const FVector& Location);
+ /** A bolt hit world geometry that is no piece and no body. */
+ void PlayImpact(int32 ShooterId, EVersePenetrationMaterial Material, const FVector& Location);
+ void StartDroneLoop(int32 DroneKey, bool bWelding, const FVector& Location);
+ void UpdateDroneLoop(int32 DroneKey, const FVector& Location);
+ void StopDroneLoop(int32 DroneKey);
+ void SetAmbience(EVerseAmbience Ambience);
+ void SetCrewBed(bool bOn);
+ void PlayUi(EVerseUiSound Sound);
+ void PlayLift(EVerseLiftSound Sound);
+
+ // --- introspection (audio event log of the parity AT checks)
+
+ const TArray<FVerseAudioLogEntry>& GetEventLog() const { return EventLog; }
+ void ClearEventLog() { EventLog.Reset(); }
+ int32 GetActiveVoices() const { return Budget.Num(); }
+ int32 GetPeakVoices() const { return PeakVoices; }
+ void ResetPeakVoices() { PeakVoices = Budget.Num(); }
+ double GetTime() const { return Now; }
+ int32 GetLoopCount() const { return Loops.Num(); }
+
+ /** Attenuation range in m for a source with this tag and loudness (DA_Audibility, F6). */
+ float RangeForNoise(FName NoiseTag, float Loudness) const;
+ /** The attenuation a remote source with this tag gets. */
+ void MakeNoiseAttenuation(FName NoiseTag, float Loudness, FSoundAttenuationSettings& Out) const;
+
+private:
+ struct FPlayParams
+ {
+ FVector Location = FVector::ZeroVector;
+ int32 SourceId = INDEX_NONE;
+ float Gain = 1.f;
+ float Loudness = 1.f;
+ /** Range instead of the cue's noise range (own bolt impacts). */
+ float RangeOverrideM = 0.f;
+ };
+
+ struct FLoop
+ {
+ int32 Handle = 0;
+ FName CueId;
+ FPlayParams Params;
+ double NextOcclusionAt = 0.0;
+ float BaseVolume = 1.f;
+ };
+
+ struct FPending
+ {
+ double At = 0.0;
+ FName CueId;
+ FPlayParams Params;
+ };
+
+ void HandleFire(const FVerseFireEvent& Event);
+ void HandleHit(const FVerseHitEvent& Event);
+ void HandlePenetration(const FVersePenetrationEvent& Event);
+ void HandleReload(const FVerseReloadEvent& Event);
+ void HandleGadget(const FVerseGadgetEvent& Event);
+ void HandleFracture(const FVerseFractureEvent& Event);
+ void HandleFinisher(const FVerseFinisherEvent& Event);
+
+ /** Plays a cue; returns the voice handle or 0 when nothing played. */
+ int32 PlayCue(FName CueId, const FPlayParams& Params, float* OutBaseVolume = nullptr);
+ void StartLoop(int64 Key, FName CueId, const FPlayParams& Params);
+ void StopLoop(int64 Key, float FadeOutS = 0.25f);
+ void StopVoice(int32 Handle, float FadeOutS);
+ void Log(FName CueId, int32 Variant, const FPlayParams& Params, bool bSpatial, float RangeM, float Volume, float Pitch,
+ const FVerseOcclusion& Occlusion, bool bAdmitted, bool bStole, bool bStop = false);
+ bool IsLocal(int32 PlayerId) const;
+ USoundAttenuation* AttenuationFor(float RangeM);
+ void ApplyMasterVolume();
+ void RouteCueSet();
+ FName WeaponCue(FName WeaponId, const TCHAR* Prefix, const TCHAR* Suffix) const;
+ const IVersePieceQuery& Pieces() const;
+
+ UPROPERTY(Transient)
+ TObjectPtr<UVerseAudioCueSet> CueSet;
+
+ UPROPERTY(Transient)
+ TMap<int32, TObjectPtr<USoundAttenuation>> AttenuationCache;
+
+ TWeakObjectPtr<UVerseEventHub> Hub;
+ TSharedPtr<IVerseAudioSink> Sink;
+ const IVersePenetrationQuery* PenetrationQuery = nullptr;
+ const IVersePieceQuery* PieceQuery = nullptr;
+ int32 LocalPlayerIdOverride = INDEX_NONE;
+ TOptional<FVector> ListenerOverride;
+ TFunction<TOptional<FVector>(int32)> PlayerLocationResolver;
+
+ FVerseVoiceBudget Budget;
+ FVerseVariantPicker Picker;
+ TArray<FVerseAudioLogEntry> EventLog;
+ TMap<int64, FLoop> Loops;
+ TArray<FPending> Pending;
+ /** Reload voice per player, stopped when the reload is cancelled. */
+ TMap<int32, int32> ReloadVoices;
+
+ double Now = 0.0;
+ int32 NextHandle = 1;
+ int32 PeakVoices = 0;
+ bool bDormant = false;
+ bool bUiSoundEnabled = true;
+ float UserVolume = 1.f;
+ /** Fade multiplier 0..1 towards the dormant target. */
+ float FadeLevel = 1.f;
+ float MasterVolume = 1.f;
+ EVerseAmbience CurrentAmbience = EVerseAmbience::None;
+
+ static constexpr int32 MaxLogEntries = 8192;
+};
diff --git a/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioTypes.h b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioTypes.h
new file mode 100644
index 0000000000..09ef8e093a
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Public/Audio/VerseAudioTypes.h
@@ -0,0 +1,293 @@
+#pragma once
+
+#include "CoreMinimal.h"
+
+#include "VerseAudioTypes.generated.h"
+
+class USoundBase;
+
+// Audio types of WP19. One cue is one kind of sound (a weapon layer, an impact on one material,
+// a footstep on one surface) with its recorded or synthesised variants. Cues are data:
+// unreal/Verse/Data/audio/cues.json is the source, DA_AudioCues the imported asset.
+
+/** Mix bus of a cue; its gain is mix.json bus_gain_db. Order is the index of FVerseAudioMixSettings::BusGainDb. */
+UENUM(BlueprintType)
+enum class EVerseAudioBus : uint8
+{
+ Weapons,
+ Impacts,
+ Foley,
+ Destruction,
+ Gadgets,
+ Ambience,
+ UI
+};
+
+inline constexpr int32 VerseAudioBusCount = 7;
+
+/** Surface a foot lands on (footstep cue fs_<surface>). */
+UENUM(BlueprintType)
+enum class EVerseFootSurface : uint8
+{
+ Metal,
+ Grating,
+ Concrete,
+ Rubble
+};
+
+/**
+ * Gait of a footstep. Walk, run and sprint raise Noise.Footstep.*; crouch walk and prone crawl raise
+ * no noise (bot.md 3.2), so another player's crouched steps are silent to the person too (F6).
+ */
+UENUM(BlueprintType)
+enum class EVerseGait : uint8
+{
+ CrouchWalk,
+ ProneCrawl,
+ Walk,
+ Run,
+ Sprint
+};
+
+/** Movement foley that is not a footstep. Slide, land and mantle raise Noise.Move.*; the rest is own-only. */
+UENUM(BlueprintType)
+enum class EVerseFoley : uint8
+{
+ Slide,
+ Land,
+ Mantle,
+ LeanIn,
+ LeanOut,
+ ProneDown,
+ ProneUp
+};
+
+UENUM(BlueprintType)
+enum class EVerseUiSound : uint8
+{
+ Click,
+ Hover,
+ Confirm,
+ Back,
+ PanelOpen,
+ PanelClose,
+ LevelBell
+};
+
+/** The deck bed that loops while the person is on that deck (parity Z-14). */
+UENUM(BlueprintType)
+enum class EVerseAmbience : uint8
+{
+ None,
+ Bridge,
+ Ops,
+ Engineering,
+ Hangar
+};
+
+UENUM(BlueprintType)
+enum class EVerseLiftSound : uint8
+{
+ DoorOpen,
+ DoorClose,
+ RideStart,
+ RideStop
+};
+
+/** One cue of DA_AudioCues. */
+USTRUCT(BlueprintType)
+struct VERSEUI_API FVerseAudioCue
+{
+ GENERATED_BODY()
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ FName CueId;
+
+ /** Variants; the picker never plays the same one twice in a row (parity Z-15). */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ TArray<TObjectPtr<USoundBase>> Variants;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ EVerseAudioBus Bus = EVerseAudioBus::Weapons;
+
+ /** Placed in the world (attenuated, panned, occluded). False: plays at the listener (own first-person layers, UI, beds). */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ bool bSpatial = true;
+
+ /**
+ * Noise.* tag of bot.md 3.2. A source other than the listener is attenuated to exactly the
+ * DA_Audibility range of this tag, so the person and the bot hear the same world (fairness F6).
+ */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ FName NoiseTag;
+
+ /** Range for a spatial cue with no noise tag, and for the listener's own bolt impacts (shooter feedback). 0 = none. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio", meta = (Units = "m"))
+ float RangeM = 0.f;
+
+ /** Random linear volume range per play. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ FVector2D Volume = FVector2D(1.0, 1.0);
+
+ /** Random pitch range per play. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ FVector2D Pitch = FVector2D(1.0, 1.0);
+
+ /** Voice stealing: a cue may take the voice of a lower-priority one when the budget is full. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ float Priority = 1.f;
+
+ /** Concurrency of this cue; a new play over the limit replaces its oldest voice. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ int32 MaxVoices = 4;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ bool bLoop = false;
+
+ /** "own" (synthesised by art/verse/audio) or "cc0:<keys>" citing art/verse/LICENSES.md rows (A19.6). */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
+ FString Licence;
+};
+
+/** mix.json, imported into DA_AudioCues. Defaults equal the committed file. */
+USTRUCT(BlueprintType)
+struct VERSEUI_API FVerseAudioMixSettings
+{
+ GENERATED_BODY()
+
+ FVerseAudioMixSettings();
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Mix")
+ float MasterGainDb = -7.7f;
+
+ /** Indexed by EVerseAudioBus. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Mix")
+ TArray<float> BusGainDb;
+
+ /** Voice budget of the whole Verse (A19.3: at most 64 voices). */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Mix")
+ int32 MaxVoices = 64;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Mix", meta = (Units = "s"))
+ float DormantUnmuteFadeS = 0.15f;
+
+ /** Distance law: (reference / d) ^ rolloff beyond the reference distance, floored. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Distance", meta = (Units = "m"))
+ float ReferenceM = 1.5f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Distance")
+ float Rolloff = 0.6f;
+
+ /** The last (1 - this) of a finite range fades to silence, so the range end is exact. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Distance")
+ float FadeStartFraction = 0.7f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Distance")
+ float FloorDb = -48.f;
+
+ /** Third-person shot: the near layer alone up to here, the far layer alone from FarFullM. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Weapons", meta = (Units = "m"))
+ float ShotNearFullM = 8.f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Weapons", meta = (Units = "m"))
+ float ShotFarFullM = 35.f;
+
+ /** A bolt passing the listener closer than this plays a flyby at its closest point. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Weapons", meta = (Units = "m"))
+ float FlybyRadiusM = 3.5f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Weapons", meta = (Units = "m/s"))
+ float BoltSpeedMps = 300.f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Destruction", meta = (Units = "s"))
+ float SettleDelayMinS = 0.6f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Destruction", meta = (Units = "s"))
+ float SettleDelayMaxS = 0.9f;
+
+ /** Loops (drones, Bulwark hum) re-trace their occlusion at this interval. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Occlusion", meta = (Units = "s"))
+ float OcclusionRefreshS = 0.25f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Occlusion")
+ float OcclusionMaxLossDb = -36.f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Occlusion")
+ float OpenLowpassHz = 20000.f;
+
+ /** Per penetration-table material (wire order): loss through one piece and the low-pass behind it. */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Occlusion")
+ TArray<float> OcclusionLossDb;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Occlusion")
+ TArray<float> OcclusionLowpassHz;
+
+ /** Look-ahead limiter on the Verse master submix (true peak at most -1 dBTP, A19.4). */
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Limiter")
+ float LimiterThresholdDb = -2.5f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Limiter")
+ float LimiterLookaheadMs = 3.f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Limiter")
+ float LimiterAttackMs = 1.f;
+
+ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Limiter")
+ float LimiterReleaseMs = 120.f;
+};
+
+/** One line of the audio event log the parity AT checks and the acceptance tests read. */
+USTRUCT(BlueprintType)
+struct VERSEUI_API FVerseAudioLogEntry
+{
+ GENERATED_BODY()
+
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ FName CueId;
+
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ int32 Variant = 0;
+
+ /** GFrameCounter when the play was issued (A19.2). */
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ int64 Frame = 0;
+
+ /** Subsystem clock, s. */
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ double Time = 0.0;
+
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ FVector Location = FVector::ZeroVector;
+
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ bool bSpatial = false;
+
+ /** Attenuation range used, m; 0 for a non-spatial play. */
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ float RangeM = 0.f;
+
+ /** Linear volume handed to the voice (cue x bus x layer x occlusion; master is applied on the submix). */
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ float Volume = 1.f;
+
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ float Pitch = 1.f;
+
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ float OcclusionLossDb = 0.f;
+
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ float LowpassHz = 20000.f;
+
+ /** False when the voice budget refused the play. */
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ bool bAdmitted = true;
+
+ /** True when this play took another cue's voice. */
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ bool bStole = false;
+
+ /** Stop of a loop or a cancelled reload. */
+ UPROPERTY(VisibleAnywhere, Category = "Audio")
+ bool bStop = false;
+};