Macaw OS C reference

Function loadsong

#include <macaw.h>
int loadsong(const char *path);

Reads a song file once, so you can play it many times with playloadedsong without reading the file again.

Parameters

pathconst char *
The song file's path. A path without / at the start is from your program's folder.

Returns int

A number for the song, or 0 if it couldn't be read.

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