You must be logged in to do that.

PlayMusic

PlayMusic
void PlayMusic(string songfile)

Documentation

This function loads and immediately plays the specified song.

This is the cornerstone of the 'simple' music API. It does not return a handle, it does no caching, it just loads and plays the song until you call PlayMusic() again with a different song, or until you call StopMusic().

Important note is that it resets to volume to 100 whenever called, so make sure to use SetMusicVolume() afterwards if you need to.

Example Usage

PlayMusic("mysong.xm");
SetMusicVolume(music_volume);
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.