Library:Miles Sound System
| 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@Nis the argument byte count and changes between versions). Unverified for the 64-bit file name:Mss64.dllis 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 usesMiles*names (version 9). A plug-in system called RIB (RAD Interface Broker) exposesRIB_*functions. - Providers are separate files in the game or a redist folder:
.asiaudio stream decoders (MP3:Mp3dec.asi,Mssmp3.asi; Ogg:Mssogg.asi; Bink audio:Binkawin.asi),.m3d3D audio (Mss3d.m3d,Mssds3d.m3d,Msseax.m3d...),.fltfilters (Msslowp.flt,Mssreverb.flt). Games callAIL_startup(), which registers providers; they queryRIB_enumerate_providers("ASI stream", ...)beforeAIL_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 (RIFFDLS) 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 OpenMilessrc/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). .mssas 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