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.
Input must be an uncompressed mono or stereo 16-bit PCM WAV:
NGCAADPCM.exe -E input.wav output.ngcaTo prepare the codec loop context:
NGCAADPCM.exe -E input.wav output.ngca -L1000-20000The 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.
NGCAADPCM.exe -D input.ngca output.wav -R22050Use -R<Hz> with the frequency from the source metadata. If omitted, the tool uses 32000 Hz and reports that default.
0: conversion completed successfully.1: command-line, input, output, format, or conversion error.