HOW-TO: Play game audio direct from source (DVD/HDD)

Information
This page is mainly for information about Xbox game music formats but anything can be added in the general codec/nfo area :)

pap: PAplayer, XBMC's multicodec musicplayer. Has features like Replaygain, Gapless decoding & APEv2 tag support. More info here

Currently supports the following decoders:

Currently Supported Codecs

By scouting around, we've come to learn the following about Xbox game audio:

Most games use these audio formats: ADX, PCM, WMA, XBADPCM. Many other consoles use a similiar TYPE of ADPCM format, however the code encode/decode algorithms are not identical.

CONTAINER FORMATS Name (Format/s Contained) [Developer/s]

01. ARC (Multi) [EA] 02. AFS (Multi) [CRI Middleware] 03. BIN (Multi) [EA] 04. BIG (Multi) [Codemasters, EA] 05. MAP (Multi) [Bungie] 06. MSX (XBADPCM) [Midway] 07. PIZ (Multi) [?] 08. RCF (Multi) [Radcore] 09. REZ (Multi) [?] 10. RFA (Multi) [Digital Illusions] 11. RWS (XBADPCM,PCM) [?] 12. SR (Multi) [?] 13. SXB/VXB (XBADPCM, PCM) [RazorWorks] 14. VIV (Multi) [EA] 15. WAD (Multi) [Multi] 16. XBP (WMA, XBADPCM) [?] 17. XPR (Multi) [Microsoft] 18. XWB (PCM, WMA, XBADPCM) [Microsoft] 19. XWC (XBADPCM) [Starbreeze Studios] 20. ZWB (PCM, WMA, XBADPCM) [?]

AUDIO FORMATS Name (Info)

01. ADX 02. AIX (Multiple Adx Streams) 03. OGG 04. PCM 05. STX (Non-standard XBADPCM) 06. WMA 07. XBOX ADPCM (aka XBADPCM / XADPCM)

IMAGE/VIDEO FORMATS Name (Info)

01. D3DS 02. DDS (Image - Direct Draw Surface) 03. BIK (Video - Radcore) 04. BMP (Image) 05. LWO (3D Model - Lightwave Object) 06. M1V (Video) 07. MOV (Video) 08. P3D (3D Model) 09. PNG (Image) 10. SFD (Video) 11. WMV (Video) 12. X (3D Model - Direct X Model) 13. XMV (Video)

MISC/UNKNOWN FORMATS

01. ADG 02. AWD 03. BGV 04. CAT 04. FSB 05. GZP 06. HWD 07. PSS 08. PVR 09. XSB (Xwb Filename Container)

Known Developer Formats
Most games use the XWB ( Xact/Xbox Wave Bank ) format, which can contain: PCM, WMA, XBADPCM.

XSB is a filename container for the XWB format.

A lot of Microsoft Game Studios games use WMA ( what else :P ).

Sega games use: ADX &/or AFS ( archive format which most of the time contains ADX files ).

SFD is CRI MiddleWares video Codec.

Xbox ADPCM Header Spec
4 bytes 'RIFF' 4 bytes Size of File +40 8 bytes 'Wavefmt ' 4 bytes Size of Wavefmt Block (Always = 0x20) 2 bytes Wav Codec ID (Always = 0x69) 2 bytes No of Channels (Max = 2) 4 bytes Samplerate (Min = 8000hz, Max = 48000hz) 4 bytes Byterate ( (Samplerate * Block Alignment) >> 6 ) 2 bytes Block Alignment (No of Channels * 36) 2 bytes Bits Per Sample (Always = 4) 2 bytes ? (Always = 0x02) 2 bytes ? (Always = 0x64) 4 bytes 'data' 4 bytes Size of Data Block (Size of File)

Extracting/Injecting Utilities
Only use this one: EkszBox-ABX v1.5 Good compatibility, 28 Xbox audio/container formats supported. Includes support for file swap/injection on certain formats. Other: Game Extractor Have not got it functioning yet but its supposed to extract many different game content. xSEX Supposed to support xsb & xwb extraction. xSEX Source Code XWB/ZWB files unpacker 0.3 Command line app which has good speed & supports Xsb/Xwb/Zwb, also includes sourcecode. XWB2WAV XWB to WAV Converter. XWB Extractor v1.0 Works better than v1.1.

Misc/Info
CRI MiddleWare These guys developed the ADX encoding XBOX XWB Information HCS GAMECUBE audio that we currently support including ADX :) X-S Forum topic about extracting XWB CubeMediaPlayer BINK VIDEO TOOLS Downsampling xbox content?

Xbox ADPCM (General)
xbadpdec.zip Luigi Auriemma Research XB_adpcm_codec.rar usual place: /XBOX/PC Based Applications/drivers-codecs/xb_adpcm/ XBOX/GC/PS2/Dreamcast ADX (WINAMP) HCS Winamp Plugin foobar2000 – Winamp plugin wrapper to use with above (only works on older foobar 5.3ish) foobar2000 wrapper plugin that can be used with above codecs