11 March 2016 - Forum Rules

Main Menu

Playing sound in GBDK

Started by Guadozoku, December 30, 2012, 12:29:08 AM

Previous topic - Next topic


I'm giving some Game Boy programming a go. My C knowledge is hardly what it should be, but I don't understand how to do sound on this thing. Is there any good help out there? The example file is out of my league, so is there any simpler way than all that code?


What do you mean by playing a sound ?

if it is a square wave (aka "biiip, twip, ...", something that sounds like traditional gb games) have a look at sound.c from gbdk example :

if it is a sample (like a wav) : have a look at PlaySample() function : 

hope this help