sound tracker modules

BlitzPlus Forums/BlitzPlus Beginners Area/sound tracker modules

morcar(Posted 2013) [#1]
I have made music using skale tricker and wanted to save it out in a format that blitz can play. .WAV are very big files so does Blitz Plus support any kind of module formats like .xm and the like ?


xlsior(Posted 2013) [#2]
Yes. From the help:


PlayMusic (filename$[,flags])

Parameters
filename$ - name of music file. Formats supported: raw/mod/s3m/xm/it/mid/rmi/wav/mp2/mp3/ogg/wma/asf
flags = optional playback flags



(BlitzPlus and Blitz3D both use fmod for the sound system, which supports tracker modules by default. BlitzMax does NOT support those out of the box, but there are 3rd party modules that will play them)


morcar(Posted 2013) [#3]
yeah i just tried an .xm file and it played so i am very happy

thanks for the help by the way


modmcdl(Posted 2013) [#4]
what do you mean by the flags?

I am unfamiliar with that parameter


modmcdl(Posted 2013) [#5]
oh, and for the file name, I assume you have to include the path to it as well?


xlsior(Posted 2013) [#6]
oh, and for the file name, I assume you have to include the path to it as well?


Yes and no -- you can specify the full path, a relative path, or leave it out alltogether. e.g.

"myfile.wav" --> will look in the current folder, same folder as your program executable is in

"sounds\myfile.wav" --> play myfile.wav from the subdirectory 'sounds' under whatever folder your file exists in. This method will allow you to organize your data files across your program folder, and it doesn't matter where the program itself is installed for it to work.

"c:\my program\my sounds\myfile.wav" --> will look for the absolute location. Very bad practice in most cases, since you often have very little control over where the program gets installed, and if someone else didn't put it in "c:\my program", this will fail on their PC.