News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Playing sound in GBDK  (Read 4592 times)

Guadozoku

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
Playing sound in GBDK
« on: December 30, 2012, 12:29:08 am »
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?

tigrou

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: Playing sound in GBDK
« Reply #1 on: January 08, 2013, 05:36:25 pm »
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 : http://gbdk.sourceforge.net/examples.html

if it is a sample (like a wav) : have a look at PlaySample() function : http://gbdk.sourceforge.net/doc/html/sample.h.html 

hope this help