music

BlitzMax Forums/BlitzMax Programming/music

Does anyone have any code for playing a song, then when the song is over, a new (random) song is played?

examine the directory with music in it, and store every filename in an array or list.
pick a song by (randomly) pick a name from the list or array.
load and play the song and when the song is over, run the pick again.

I whipped up this little library...
http://www.codersworkshop.com/viewshowcase.php?id=813&read=no

I'll have a look, thanks Gillissie, by the way, the link @ coders workshop is pointing to:
http://www.codersworkshop.com/www.gilligames.com/downloads/music.zip



instead of:
www.gilligames.com/downloads/music.zip

this is probably because you didn't put the http:// in there.