1
MilkyPlay / Trying to play module with milkyplay code...
« on: April 12, 2013, 22:06:01 »
Hello!
I am trying to play xm modules with milky player source code using AudioDriver_SDL.
Code runs well but i cant hear a sound. I think i am doing something wrong or missing something to call. I have windows7 64bit and use Mingw to compile my code.
Please help!
Thanks for help and this great tracker!
I am trying to play xm modules with milky player source code using AudioDriver_SDL.
Code runs well but i cant hear a sound. I think i am doing something wrong or missing something to call. I have windows7 64bit and use Mingw to compile my code.
Please help!
Code: [Select]
AudioDriver_SDL driver;
PlayerGeneric player(44100, &driver);
XModule mod;
char filename[] = "mymodule.xm";
if (mod.loadModule(filename,true)<0) {
printf("Cant load module\n");
return -1;
}
if (!mod.isModuleLoaded()) {
printf("Module is NOT loaded!\n");
return -1;
}
if(player.startPlaying(&mod)<0)
{
printf("Cant start playing!\n");
return -1;
}
Thanks for help and this great tracker!