Home

Awesome

VGAudio

VGAudio is a library for encoding, decoding, and manipulating audio files and formats that are usually found in video games.

The most recent release of the library can be found on NuGet

The Universal Windows app can be found in the Windows Store

Supported Audio Formats and Containers

Audio Formats

FormatEncodeDecodeNotes
ATRAC9XMDCT-based codec from Sony
CRI ADXXX4-bit ADPCM codec from CRI
CRI HCAXXMDCT-based codec from CRI
Nintendo GC-ADPCMXX4-bit ADPCM codec from Nintendo
PCM 8-bitXXSigned and unsigned
PCM 16-bitXX

Container Formats

ContainerWriteReadNotes
AT9XX
BCSTMXX
BCSTPX
BCWAVX
BFSTMXX
BFSTPX
BFWAVX
BRSTMXX
BRWAVX
DSP (Nintendo)XX
GENHXGC-ADPCM only
HCAXX
HPSXXHAL Laboratory "HALPST" container for GC-ADPCM audio
IDSP (Interleaved Nintendo DSP)XX
MDSPXXMulti-channel Nintendo DSP
WAVXX

VGAudioCli

The tool VGAudioCli provides a command-line interface (CLI) to convert audio files supported by the VGAudio library.

Examples

Basic Usage

Splitting and Combining Files

Batch Conversions

Batch conversion allows an entire folder of files to be converted at a time. These conversions are done in parallel, and will be faster the more CPU cores you have.

Batch mode is used by inputting -b or --batch as the first command-line argument. Unlike single-file conversions, you must explicitly specify the output file type in batch conversions.

Examples

Lossless conversions

Depending on which format is used, when the input and output files are the same audio format, the conversion is often lossless. For example, both the DSP and BRSTM containers contain GC-ADPCM audio, so converting a DSP file to a BRSTM file would be a lossless conversion. The encoded audio data is read from the DSP file and repackaged into a BRSTM file without any modification.

The channels from some formats like ADX and GC-ADPCM can be losslessly split and combined. For example, a stereo ADX file can be split into two mono ADX files without any loss of quality. Conversely, two stereo ADX files can be combined into a single 4-channel ADX file.

Because no audio encoding is done, these types of conversions are very quick compared to normal conversions.