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

Technique:Game audio and video middleware

From ReverseEngineering.wiki
Technique
On this wiki Facts · Code · Notes · Topics

How to tell which commercial audio or video middleware (FMOD, Wwise, CRIWARE, Bink, Miles) a game embeds, which files and magic numbers to expect, and which public tool opens them.

Identification table

Middleware File magic Extensions Typical binaries
Library:FMOD FSB5/FSB1-4; RIFF with FEV at 8 .fsb .bank .snd fmod.dll, fmodex.dll, fmodstudio.dll
Library:Wwise BKHD; RIFF/RIFX WAVE with Wwise codec ids .bnk .wem .pck static AK engine
Library:Bink Video BIK+letter, KB2+letter .bik .bk2 binkw32/64.dll, bink2w64.dll
Library:CRIWARE CPK , @UTF, AFS2, 80 00, HCA\0, CRID .cpk .acb .awb .adx .hca .usm statically linked, /cri_bind/ paths
Library:Miles Sound System XMIDI is an IFF FORM/CAT; v8/9 SoundBank tag BANK; no single magic .asi .m3d .flt .xmi Mss32.dll (_AIL_*@N exports); Mss64.dll Unverified

Method

  1. List the data files and read the first 12 bytes of unknown ones; the magic usually settles the vendor.
  2. For banks, read the version: FSB5 version byte, BKHD version, HCA version, Bink revision letter. They date the SDK a game was built with and decide which parser variant applies (see Format:FSB (FMOD sound bank), Format:Wwise SoundBank (BNK), Format:HCA, Format:Bink video (BIK, KB2)).
  3. Do not look for Ogg: FMOD and Wwise Vorbis audio has no Ogg pages and no setup header, a plain 'OggS' scan fails (Notes:Vorbis/2026-10-17 Vorbis without Ogg in game middleware 96cf).
  4. Open the bank in vgmstream (ISC) to list subsongs and convert; Wwise HIRC logic needs wwiser; Wwise Vorbis can be converted to Ogg with ww2ogg.
  5. Encrypted variants (FSB flag 4, ADX 0x0408/0x0409, keyed HCA and USM) need per-game keys held by the game; those keys are not part of this wiki.

Hooking

Because assets come through the middleware's own file layer (CRI file system /cri_bind/, FMOD System::createSound file callbacks, Wwise AK::IAkStreamMgr file location resolver), the middleware's open call is a convenient place to redirect files for mods.

Related

Format:Ogg, Format:Vorbis, Technique:Bundled-runtime applications.

Standard containers that middleware and engines reuse or wrap: Format:RIFF WAVE (WEM and FEV are RIFF), Format:FLAC, Format:MPEG audio, Format:AVI, Format:ISO base media file format, Format:Matroska.

Microsoft XACT

XACT (Xbox, Xbox 360, Windows, XNA) ships .xwb wave banks (magic WBND, or DNBW on Xbox 360) and .xsb sound banks (SDBK / KBDS); see Format:XACT wave bank and sound bank (XWB, XSB). CRI cue sheets (.acb, @UTF) are described on Format:CRI ACB.

Code & repositories

  • https://github.com/vgmstream/vgmstream @ db77f98f405a45ad08df98aa444cae3848f95e6c · license: ISC (declared by the contributor; GitHub's detector did not recognize COPYING)
    vgmstream (ISC): reads FSB1-5, FMOD banks, Wwise WEM/BNK, Bink audio, CRI ADX/HCA/AWB/CPK/USM; the parsers in src/meta document the formats.
    Tested on: source read, not run: source read, not run · checked 2026-10-18; last activity 2026-10-16; Note: the latest release ships binaries; the wiki links only the source, never the binaries

Evidence & references

  • vgmstream commit db77f98f405a45ad08df98aa444cae3848f95e6c (ISC license) src/meta/*.c; ww2ogg commit 14ed9b0dd62e815a38702b5f03c57006cbe2501b. The Miles row and the hooking API names are Unverified.