music

BlitzMax Forums/BlitzMax Programming/music

gellyware(Posted 2006) [#1]
Does anyone have any code for playing a song, then when the song is over, a new (random) song is played?


LarsG(Posted 2006) [#2]
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.


Gillissie(Posted 2006) [#3]
I whipped up this little library...
http://www.codersworkshop.com/viewshowcase.php?id=813&read=no


gellyware(Posted 2006) [#4]
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.