Native Linux audio audit
Checked the 14.9.1 assets and original sound-module imports on 2026-10-16. The portable client uses SDL2 and libsndfile; Windows Miles DLLs and plug-ins are neither needed nor loaded by Linux.
Shipped sounds
The audit fully decoded every WAV using the same Linux libsndfile 1.2.2 library linked by the game. Of 3,268 WAVs, 3,267 contain decodable audio and one is intentionally empty. There were no open, decode or close failures. All use one or two channels at 11,025, 22,050 or 44,100 Hz.
| Group | Formats |
|---|---|
| Music | 771 MPEG layer III streams in WAV containers, 6 PCM samples |
| Effects | 2,423 IMA ADPCM WAVs, 25 PCM WAVs |
| Voices | 43 IMA ADPCM WAVs |
The empty file, sfx/env/nosound.wav, is a valid 60-byte IMA WAV with zero
sample count and zero audio payload. The two SBF banks, SWS music project and
SFK editor file were inventoried separately, not passed to a sound decoder.
Successful decoding proves format coverage, not that every game event selects
and plays the correct sound.
The MPEG "Illegal Audio-MPEG-Header" diagnostics occur at the end of the RIFF audio payload, where metadata or padding starts. All 563 warning offsets were checked. Three whole-file versus extracted-payload comparisons produced identical decoded PCM hashes and frame counts. These warnings do not indicate missing audio in those comparisons. Decoder frame estimates exceed readable frames for the MPEG files; the adapter uses the actual returned frame count.
Calls and effects
The import/string audit covers all 34 original game modules. Only mmr.dll
(effects) and pr.dll (music) import Miles. Neither imports LoadLibrary or
GetProcAddress. No game module imports DirectSound, and no reverb, filter,
3D-provider or panning control was found in the Miles imports. The two audio
modules open ordinary stereo wave-output drivers.
REA/Ghidra traced mmr.dll's environment-sound entry through its sound-selection
and layering logic. This is maintained game C and remains active on Linux.
There is no established call path to the bundled .flt or .m3d plug-ins.
Do not add global reverb just because the redistributable contains reverb
filters: that would change every sound without evidence of how AO selects it.
Dungeon reverberation may be recorded into assets or produced by game layering;
this audit does not establish which. No dungeon listening comparison has been
performed, and bounded static searches cannot exclude every dynamic behavior.
Implemented gaps
AIL_decompress_ASI: native MPEG layer III decoding into an owned PCM16 RIFF buffer, including the optional output-size pointer and Miles-compatible extension selection. Originalmmr.dllat0x10008430(maintainedsub_3A008430) calls this only for file type 13, with no callback and no size output. The original codec accepts.mp3and rejects.wavfor this API, even when the latter contains MPEG audio. This is distinct from music streaming, which accepts the shipped WAV containers. The shipped effects and voices themselves use PCM/IMA, so this import was a latent unsupported branch, not evidence that all compressed music had been missing.- Empty WAV handling: the original library rejects an empty sample without crashing, but accepts an empty stream that completes without playing frames. The adapter now matches that behavior instead of aborting on zero frames.
AIL_quick_shutdown: preserves manually opened drivers. Miles only tears down handles owned byAIL_quick_startup; AO never imports that initializer and calls quick shutdown after ordinary device-open failure. This is a verified no-operation in AO's usage, not a blanket success stub.
Non-null ASI progress callbacks remain explicitly unsupported; AO's only call passes null. The replacement mixer does not promise bit-identical Miles resampling or volume quantization. Spatial audio, VOC and DSP filters have not been added without a demonstrated game call path.
The rebuilt resolver now binds all 32 unique Miles imports. Across all platform libraries there are 286 implemented imports and 310 remaining unsupported imports; API presence does not imply complete argument coverage.
Reproduction and evidence
From the repository root on Linux:
python3 tools/client/audit_audio_assets.py 2> local/client/audio-assets-audit.stderr.log
On Windows with the local reference client, compiler and WSL:
.\venv\Scripts\python.exe tools/client/audit_audio_imports.py
.\venv\Scripts\python.exe tools/client/test_portable_audio.py
.\venv\Scripts\python.exe tools/client/test_portable_audio_decode.py
The ordinary audio fixture compares sample/stream state, loops, rates, volume,
empty sounds and shutdown with Windows Miles, and checks mixed PCM through the
Linux SDL callback. The decompression fixture compares three music assets and
one extracted raw MPEG stream: formats and frame counts match exactly, with
RMS differences of 0.47-1.19 PCM16 integer steps and maxima of 36-61 steps.
It also checks output ownership, optional size, rejected inputs and guest ABI.
These are decoder comparisons, not a human listening assessment.
All 61 native regression programs passed. The audio and MPEG-decompression
fixtures also passed AddressSanitizer and UndefinedBehaviorSanitizer with SDL's
dummy output backend. Logs are local/client/audio-regression.log,
audio-sanitized.log and audio-decode-sanitized.log.
The first real-game validation reached screenshot capture but timed out inside
debugger-injected GPU readback. The capture harness now permits Mesa worker
threads during that call. File tracing is disabled during debugger-injected
calls, including those readbacks; its report must not be described as exhaustive
over those intervals. The original failure log is
local/client/audio-capture-timeout.log.
The repeated game run passed 700 frames, inventory/map opening and closing, and
server-confirmed movement from [960, 16.375, 510] to
[954.5, 16.375, 504.5]. All six captures were inspected. The client decoded
music without an audio fault and ran from the 4,042-file portable asset bundle;
the traced file accesses did not open other repository files. Evidence is in
local/client/linux-game-smoke/ and audio-game-verification.log. The harness
stopped its client/server and restored preferences and the isolated character.
Complete local reports are under local/client/: audio-assets-audit.json,
audio-imports.json, audio-metadata-warnings.json, audio-metadata-check.json,
portable-audio-decode/report.json, audio-miles-rea.json and audio-game-rea.json.
Proprietary audio and reference decoder outputs remain ignored.
REA evidence: ev_0c2f35b090c7208e04c039f61353507fbdaf1885b11215fb7c250e0076eb4db6
is the game decompression caller;
ev_ce9bdf90b4d5a4f3b0f225812d7bc04b661be3037b15e9f47c9bdb6b3398a568
is Miles decompression;
ev_4733328d64981bdf9c51eea4cbfe1a7e7b61d3e4fcc8a3b5d452bdbaf8947b4e
is quick-shutdown ownership;
ev_2789e481774ed87ed5eddce63f16ad1fda5c66d84395c66769c6e2f6ed1dfbbd
is the game's stereo initialization;
ev_53ca44d9da8cd295f86bae1139112d51e5f46de8630b27c2d57e6b38c80dae04
and ev_0e3d55e7ebdf4d027d9746a171896aab956f7c16a874f7a533cf8aebf88f22fb
cover environment-sound dispatch and layering. Decompiler types are inferred;
the decompression call arguments were also checked in the maintained instruction
translation and exercised against the original DLL.