Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:Miles Sound System

From ReverseEngineering.wiki
Library
Developer RAD Game Tools / Epic Games Tools
Vendor Epic Games Tools
Platforms Windows, macOS, Linux, consoles
Extensions .asi .m3d .flt .xmi .bank
Website https://www.radgametools.com/miles.htm
On this wiki Facts · Code · Notes · Topics

RAD Game Tools' (now Epic Games Tools) audio middleware, historically the Audio Interface Library (AIL) by John Miles, linked or shipped by thousands of games as mss32.dll with AIL_ functions and .asi/.m3d/.flt provider plug-ins.

Identification

  • Windows 32-bit games import Mss32.dll; the exports are stdcall with decorated names such as _AIL_init_sample@8 (the @N is the argument byte count and changes between versions). Unverified for the 64-bit file name: Mss64.dll is the name usually given for x64 builds; no public source read for this page states it.
  • The C API prefix is AIL_ (Audio Interface Library, the former product name); the later event API uses Miles* names (version 9). A plug-in system called RIB (RAD Interface Broker) exposes RIB_* functions.
  • Providers are separate files in the game or a redist folder: .asi audio stream decoders (MP3: Mp3dec.asi, Mssmp3.asi; Ogg: Mssogg.asi; Bink audio: Binkawin.asi), .m3d 3D audio (Mss3d.m3d, Mssds3d.m3d, Msseax.m3d...), .flt filters (Msslowp.flt, Mssreverb.flt). Games call AIL_startup(), which registers providers; they query RIB_enumerate_providers("ASI stream", ...) before AIL_open_stream. A missing provider usually means silent music.

Versions

Public history (RAD): 10.0.2 (2016) turned decoders into DLLs on Windows; 10.0.11 (2017) went to four-digit versions; 10.0.50 (2020) removed MP3 and Vorbis and added Opus (distributed separately); the latest entry read is 10.0.62 (2022-03-04). The 9.x line is the AIL_/Miles* API with soundbanks. The AIL_ prefix was added to system functions in 3.5f according to a search-result summary of the RAD history page (Unverified: not read directly).

Data formats

  • XMIDI (.xmi, an IFF FORM/CAT container) for music; DLS banks (RIFF DLS ) can be merged with an XMI image (OpenMiles docs).
  • Version 8/9 SoundBank: a BANK-tagged file with events, sounds, presets and environments (OpenMiles' loader checks a tag and version). Layout not documented here: Unverified, read OpenMiles src/engine/soundbank.zig (GPL-3: read for facts only).
  • Version 9 events are stored as text/bytecode steps (AIL_create_event, AIL_next_event_step).
  • .mss as a file type: Unverified, no public source found.
  • XMIDI container layout, event encoding and the TIMB/RBRN/EVNT chunks are described on Format:XMIDI (read from ScummVM's parser).

Replacement

OpenMiles (GPL-3) is a clean-room mss32.dll replacement reproducing export tables of v3 to v9, which makes it a reference list of decorated export names per version.

Code & repositories

  • https://github.com/maci0/openmiles @ a2379e58eeb4a3df5985c6459649b25045a3db8b · license: GPL-3.0-only (declared by the contributor for the files used; GitHub reports GPL-3.0 for the repository)
    Clean-room mss32.dll replacement (GPL-3): documentation of provider files and per-version decorated export names (facts only, no code taken).
    Tested on: source read, not run: read docs · checked 2026-10-18; last activity 2026-10-15; Note: the latest release ships binaries; the wiki links only the source, never the binaries

See also

Technique:Game audio and video middleware