Would you like to add some music? It’s dead simple:
game.sound.playMusicStream(“music/yourfile.snd”); //before game.begin!
game.sound.playMusicStream(); // without parameters function triggers playback to begin
There is going to be a folder called “music” on the next game disk. There is some Creative Commons music + license.txt file where the licenses are explained.
To make a suitable music song:
Use Audacity to create a mono track (not stereo). Output the file as follows:
Then, use following audio settings in My_settings.h:
#define PROJ_ENABLE_SOUND 1 // 0 = all sound functions disabled
#define PROJ_STREAMING_MUSIC 1 // 1 = enable streaming music from SD card
#define PROJ_AUD_FREQ 11025
#define PROJ_STREAM_TO_DAC 1 // 1 use DAC for stream, 0 = use PWM for stream
#define PROJ_GBSOUND 0 // 1 = use Gamebuino-compatible sound interrupt
#define PROJ_ENABLE_SYNTH 0 // 1 = use Rboy-compatible sound interrupt
#define PROJ_USE_PWM 0 // 0 = Use only DAC for output
For free CC BY A licensed music check out https://ozzed.net/music/