GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Retro Reversing
  • File Lab
  • Introduction
  • Decompilations
  • Source Code
  • SDK 51
  • Leak 45
  • Hardware 37
  • Nintendo 64 30
  • Development Hardware 28
  • Source Code 26
  • Games 26
  • Super Nintendo 25
  • Tools 20

This view

  • Original page
  • New address

GeezerVison is showing www.retroreversing.com — Introduction to Audio/Music Programming of Retro Games - Retro Reversing (Reverse Engineering)

Retro reversing logo

Introduction to Audio/Music Programming of Retro Games

Edit on Github | Updated: 18th October 2025

Introduction

To get started the 8-bit Guy on Youtube has an excellent video covering how early computers and game consoles played sound and music 1.

The gives a good overview of the different types of Audio available in retro games:

  • Beeper Speakers - CPU driven clicking noises
  • GM Synthesisers - Dedicated Sound chips (No CPU load)
  • PCM Samples

Beeper Speaker

The beeper speaker is a very simple speaker controller by the CPU which can produce clicking noises. The CPU would have to time the clicking noises exactly right to produce the required tone. As it runs all the logic on the cpu it slows down the game and the audio produced is CPU limited.

Used in:

  • Early IBM-PC
  • Apple II

FM Synthesizer

In the early 1980s computers started coming with dedicated audio chips to take away the load from the CPU.

Each system would have a different number of Voices/Channels. Basically this allows multiple notes to be plays at the same time as each voice/channel can only do one note.

System Voices/Channels
NES 5 Voices
Commodore 64 3 Voices

Mega Drive music production

GST Channel demonstrates making Sega Genesis music with a period workflow from 1994. The video connects the console’s sound hardware with the tools used to compose for it.

NES

The first 2 voices were only capable of producing square waves. The 3rd voice can only produce a triangle and is used for bass notes. The 4th voice can only produce random noise. The 5th voice was for PCM sample sounds but apparently rarely used.

Displaced Gamers explains the NES DMC audio channel. The discussion is a focused example of sample playback within an early console sound system.

Commodore 64

Although the C64 only had 3 voices, each one could use whatever waveform it wanted out of the following options:

  • Square
  • Triangle
  • Sawtooth
  • Noise

Ben Eater explains the SID and classic 8-bit sound. The video complements the sample-playback discussion with an overview of the chip itself.

How the C64 Played Sound Samples

The C64’s sound hardware was powered by the MOS Technologies 6581 SID chip, which was advanced for its time but not considered capable of outputting digitized speech or sound samples. However, two games, Impossible Mission and Ghostbusters, released in 1984, managed to include digitized speech, which was a groundbreaking achievement.

The SID chip has three programmable oscillators but no concept of PCM audio, which is used to represent sampled audio signals. Digitized sound samples became possible on the C64 without additional hardware, thanks to a bug found on the 6581 SID chip. The speaker explains that adjusting the master volume affects the DC voltage on the volume register, which can be manipulated to create sound. By converting a sound sample to 4-bit unsigned mono and feeding it to the master volume register, it is possible to play a digitized sound sample on the C64. Modern Vintage Gamer demonstrates this by playing a sample on the Commodore 64 using both BASIC and Assembly language.

The original 6581 SID chip was replaced by the 8580 in the C64c, which fixed the issue with DC voltage offsets on the master volume register. This results in a significant difference in sound quality between the two chips. However, other methods for playing samples on the C64 have been discovered, allowing for higher-quality samples to be played using different techniques.


Sound cards for IBM-PC

Here are a few of the sound cards developed for the IBM-PC:

  • Ad-lib (Yamaha YM3812) - early audio card
  • SoundBlaster (Yamaha YM3812) - became more popular than Ad-Lib

Notice that they both use the same audio chip inside (Yamaha YM3812).

9 Voices were available in this chip and similar to the C64 they were independently programmable so each voice could have its own waveform. Unlike the NES where each voice could only use one waveform.


PCM Samples

Audio would be built up of small audio clips called “samples”. The concept of a “Mod Tracker” was developed to take advantage of this capability.

Bisqwit explains PCM audio and provides example C++ code. It is a practical companion to the distinction between stored samples and synthesised sound.


SNES music production

Nerdwriter1 explains how music was made for the Super Nintendo. It is a useful introduction to the production side of sample-based console audio.


Audio Tools for Retro Games


Tracker music

Ahoy traces tracker music and its role in 16-bit sound. The video connects music-production tools with the data and playback code used by games.

VGMTrans

vgmtrans/vgmtrans: VGMTrans - a tool to convert proprietary, sequenced videogame music to industry-standard formats


References

  1. How Oldschool Sound/Music worked ↩

introduction pc nes
Want More?

Follow us on Twitter & Bluesky!

Don't miss out on Retro Reverse Engineering updates!

Table of Contents
Recommended Content
  • introduction

    Why Reverse Engineer Retro games? - About RetroReversing.com

    12th May 2020

  • arcade

    Arcade - How retro arcade games were made

    24th October 2026

  • 2d

    2D & 3D Graphics Techniques


  • introduction

    Creating a LibRetro Frontend in Rust

    8th October 2026

  • introduction

    Creating a new reversing emulator

    13th May 2020

  • introduction

    Reversing with GDB (GNU Debugger)

    28th August 2020

  • introduction

    Game Architecture - How games are structured

    8th October 2026

  • gameboy

    Nintendo Game Boy Reverse Engineering

    1st November 2026

  • gameengines

    Introduction to Game Engines & Middleware


  • introduction

    Introduction to Decompiling C++ with Ghidra

    16th October 2026

  • n64

    N64 Decompiling with Ghidra

    25th October 2026

  • tutorial

    How Decompilers Work

    11th October 2026

  • introduction

    How Do Emulators Work? A Deep Dive into Emulator Design

    8th October 2026

  • introduction

    How to reverse engineer a microchip

    11th April 2026

  • introduction

    Beginners Guide to Reverse Engineering (Retro Games)

    28th August 2025

  • leak

    Industry Leaks - Game Industry Source Code Leaks


  • introduction

    Legality of Reverse Engineering & Clean Room Reversing

    22nd October 2026

  • n64

    Memory Hacking

    24th March 2021

  • introduction

    Emulator Game Memory corruption

    7th October 2019

  • n64

    Nintendo 64 (Project Reality) Reversing


  • n64

    N64 Reversing Introduction

    25th October 2026

  • nes

    NES Sprite Tile Editing


  • nes

    Reverse Engineering NES Games - Uncovering the Secrets of Classic Gaming

    11th November 2026

  • pc-engine

    PC-Engine


  • introduction

    PDB Files - Using PDB files for Reverse Engineering


  • introduction

    How Retro Cartridges (ROMS) work

    8th October 2026

  • introduction

    Introduction to Retro Game Graphics

    8th October 2026

  • mastersystem

    Sega Master System Reverse Engineering

    4th November 2026

  • introduction

    How does Twitch Play Pokemon? (Emulation through Twitch)

    28th December 2017

  • vita

    Sony Playstation Vita Reverse Engineering


  • introduction

    Understanding libRetro - An Internal Look for Programmers


  • n64

    Official N64 SDK Setup (MacOSX/Linux/Win)

    2nd January 2019

  • wii

    ATI Low Level Wii SDK

    26th July 2021

  • wii

    BroadOn Archive - Nintendo May 2020 Leak (4Chan)

    10th September 2020

  • tools

    C/C++ Compiler Toolchains (Console & PC)

    13th November 2026

  • ds

    Nintendo DS SDK (NITRO)


  • dreamcast

    GD Workshop (GD-R Burner/Virtualiser)

    31st October 2019

  • dreamcast

    Sega Dreamcast Microsoft Windows CE SDK

    31st October 2019

  • ps2

    Static Libraries (.A) for Playstation 2 Emotion Engine


  • gba

    Game Boy Advance Software Development Kit (SDK)

    9th May 2021

  • sdk

    Game Boy Advance SDK Demos

    28th March 2021

  • sdk

    M4A Music Library for Game Boy Advance (GBA)

    30th March 2021

  • sdk

    Game Boy Advance Software Development Kit Samples


  • sdk

    Game Boy Advance Tool Source Code


  • gameboy

    Game Boy Software Development Kits

    4th April 2026

  • gameengines

    Introduction to Game Engines & Middleware


  • n64

    Gigaleak 2 Electric Boogaloo - N64 Source Code Leak

    1st August 2020

  • sdk

    Sega Mega Drive (Genesis) Software Development Kit (SDK)

    18th October 2026

  • n64

    Nintendo 64 Compilers and Their Differences

    14th November 2026

  • n64

    Official Nintendo 64 SDK

    19th October 2026

  • n64

    Nintendo 64 SDK Demo Programs

    19th October 2026

  • ps1

    Official PlayStation 1 Software Development Kit (PSYQ)


  • pokemonmini

    Pokemon Mini Official Software Development Kit (Toolchain)


  • sdk

    Official Sony Vita SDK


  • xbox

    Official Xbox SDK (XDK)


  • leak

    Oman Archive - N64 Leak by SGI employee

    18th October 2026

  • ps1

    Playstation 1 PsyQ Linker (Psylink.exe)


  • ps1

    Official Sony PS1 Libraries


  • ps2

    PS2 Official Software Development Kit (SDK)


  • sdk

    Official Sony PSP SDK


  • ps1

    PSYQ SDK Setup on MacOSX/Linux

    16th October 2026

  • snes

    Super Famicom SFX-DOS Development Environment

    29th March 2026

  • ps2

    SN Systems Network Development Kit for PS2


  • n64

    SN64 - Nintendo 64 Software Development Kit (SDK)

    13th November 2026

  • sdk

    SNES (Super Famicom) Software Development Kit (SDK)

    3rd July 2021

  • devkit

    Sega Saturn Library Formats

    18th October 2026

  • sdk

    Sega 32X Software Development Kit (DDK)

    18th October 2026

  • saturn

    SEGA DTS and the World Behind Saturn Development

    17th October 2026

  • saturn

    Sega Saturn Hitachi Compiler Toolchain


  • saturn

    Official Sega Saturn Software Development Kit (SDK)

    18th October 2026

  • saturn

    Compiling an Official Sega Saturn Sample (SDK)

    18th October 2026

  • sdk

    SN Systems ProDG PSP SDK

    4th April 2025

  • gameboy

    Super Game Boy SDK Sample and BIOS Files

    28th March 2026

  • wii

    Nintendo Wii Diagnostic Disc Source Code


  • ique

    iQue Player Software Development Kit

    11th May 2020

  • ps2

    IRX Files for Playstation 2

    25th March 2021

  • n64

    Official N64 SDK Setup (MacOSX/Linux/Win)

    2nd January 2019

  • ps1

    PSX-EXE Format

    18th October 2026

  • sdk

    Introduction to Software Development Kits (SDKs)


  • dreamcast

    Chicken Run Source Code

    18th October 2026

  • dos

    Awesome list of DOS Game Development and Reverse Engineering information

    16th November 2026

  • msx

    MSX


  • introduction

    Emulator Game Memory corruption

    7th October 2019

  • pc-88

    PC-88 - NEC's Influential Japanese Microcomputer


  • introduction

    PDB Files - Using PDB files for Reverse Engineering


  • dos

    Planet X3 (2019 MS-DOS game)

    26th June 2019

  • introduction

    Introduction to Retro Game Graphics

    8th October 2026

  • pc

    Awesome list of Windows 3.x+ Reverse Engineering and Game Development information

    16th October 2026

  • pc

    Windows Executables (NE, LE and PE Files)


  • hardware

    The 6502 Microprocessor - Gaming's Unsung Hero


  • nes

    Home Alone 2 NES Source Code

    19th September 2018

  • introduction

    Emulator Game Memory corruption

    7th October 2019

  • nes

    NES Sprite Tile Editing


  • devkit

    NES (Famicom) Development Kit Hardware

    12th April 2026

  • nes

    The History of NES Emulation


  • nes

    Reversing Engineering a NES Game With Ghidra

    17th August 2024

  • nes

    Reverse Engineering NES Games - Uncovering the Secrets of Classic Gaming

    11th November 2026

  • leak

    Nintendo Lot Check ROM Leak

    30th September 2020

  • introduction

    How Retro Cartridges (ROMS) work

    8th October 2026

  • introduction

    Introduction to Retro Game Graphics

    8th October 2026

  • nes

    Let's reverse Super Mario Bros (NES)


You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.