Macaw OS C reference

Function playsong

#include <macaw.h>
int playsong(const char *path, int loop);

Plays a song file on the music chip, from the Music app or Tracker. The chip has voices of its own, so sound effects can play at the same time.

Parameters

pathconst char *
The song file's path, like "/home/music/island.song". A path without / at the start is from your program's folder.
loopint
1 to let it loop until you stop it or your program closes, or 0 to play it once.

Returns int

1 if the song started, or 0 if it couldn't be read.

In Songs and the music chip, with stopsong, loadsong, playloadedsong, freesong, music_volume, music_note, music_release, notenumber, notename.