Skip to content

Repository files navigation

NGC ADPCM Tool

A command-line encoder and decoder for Nintendo GameCube/Wii ADPCM audio stored in the compact NGCA container.

This is not the classic Nintendo .dsp tool. It only reads and writes NGCA files with:

  • The compact 0x40-byte NGCA header.
  • Big-endian coefficients and codec context.
  • NGCA low-nibble-first sample ordering.
  • Mono or block-interleaved stereo audio.
  • Partial final-frame handling.

Encode

Input must be an uncompressed mono or stereo 16-bit PCM WAV:

NGCAADPCM.exe -E input.wav output.ngca

To prepare the codec loop context:

NGCAADPCM.exe -E input.wav output.ngca -L1000-20000

The compact NGCA header stores the decoder loop context, but not the loop start/end offsets or sample frequency. Containers or applications using the encoded audio must retain that metadata separately.

Decode

NGCAADPCM.exe -D input.ngca output.wav -R22050

Use -R<Hz> with the frequency from the source metadata. If omitted, the tool uses 32000 Hz and reports that default.

Exit codes

  • 0: conversion completed successfully.
  • 1: command-line, input, output, format, or conversion error.

About

Command-line encoder and decoder for Nintendo GameCube/Wii ADPCM audio using the compact NGCA container.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages