RC RANDOM CHAOS

Custom Codec Brings High-Fidelity Audio to N64

· via Hacker News

Original source

Obscure audio codec is a perfect fit for the N64

Hacker News →

The N64 faced acute audio constraints due to limited cartridge space and its 93 MHz CPU. Nintendo’s standard ADPCM compression achieved 4:1 reduction but a five-minute stereo track at 44100 Hz still required roughly 12MB—impossible for a system where Mario 64’s entire ROM was 8MB. Games relied on tracker-style composition with scheduled samples instead of recorded audio. Later titles like Conker’s Bad Fur Day accessed the RSP coprocessor directly to decompress MP3, but the CPU overhead proved impractical for continuous gameplay audio.

Aikku93 created the Ultra Low Complexity Codec (ULC) starting in 2019 to address these constraints. Unlike MP3’s complex design, ULC employs a straightforward MDCT transform that stores frequency coefficients as simple 4-bit values—decoding requires roughly 150 lines of C. The author successfully compiled the ULC reference decoder for the N64, but the CPU-only implementation consumed too much processing power. Achieving 44100 Hz stereo at 4% CPU utilization requires moving the transform to the RSP coprocessor, a task constrained by the RSP’s 4KB memory limits and its fixed-point arithmetic requirements.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.