Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: ttemper on January 26, 2012
-
Trying to put some music into a demo using uFmod, it works for xm files (bin2bas), but soon as I change it to a mod file (bin2bas), no sound.
Compiling with.... fbc -lang deprecated -s gui
Is there something I'm missing?
#INCLUDE ONCE "tinyptc_ext++.bi"
#INCLUDE "sfx\happyanswer.mod.bas"
Dim hWave As HWAVEOUT
hWave = uFMOD_PlaySong(@happyanswer.mod(0), 88961, XM_MEMORY)
do
<loop here>
end
uFMOD_StopSong()
EXITPROCESS(0)
-
Unlike the name suggest, uFmod can only play xm files:
uFMOD is an XM player library written in assembly language.
You can convert your mod to xm using milky tracker (http://milkytracker.org).
-
XM only? k, persuasive naming then. Thanks for the heads up, I'll check out milky tracker.
I'll google around n see what mod player I can find.
*edit, the conversion from mod to xm was easy and worked a treat, thanks again.