Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: Trying to play module with milkyplay code...  (Read 11388 times)

0 Members and 1 Guest are viewing this topic.

Hakan

  • New User
  • Offline Offline
  • Posts: 2
    • View Profile
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!

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!
Logged

Hakan

  • New User
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Trying to play module with milkyplay code...
« Reply #1 on: April 14, 2013, 11:59:21 »

Hi again!

I've solved the problem.  ;D
It caused because of bufferSize. Somehow it sets to zero while playing.
I've set it to 2048 and bingo i have a little mod player now.  :)

Thanks again to the developers of this cute tracker...
Logged
Pages: [1]   Go Up