[HELP] Play a .xm or a .mod inline in c++

Started by Nefarious,

Nefarious

I am coding a small application and I would like to have it that when they open it, a .xm or a .mod plays automatically no browse to a .mod or a .xm just automatically plays it.
only needs to be 1 song.
I am coding in visual studio c++ 6.0

Ian @ un4seen

The basic sequence of calls for that would be something like this...

BASS_Init(-1, 44100, 0, hwnd, NULL); // initalize the default output device
music=BASS_MusicLoad(...); // load a MOD
BASS_ChannelPlay(music, FALSE); // play it
...
BASS_Free(); // free the output device (and the MOD)

Please see the documentation for further details on the aforementioned functions.

Nefarious

I have never used this before so could you write me a small fuction to do such task

JM-DG

I you want to make a standalone exe, I would suggest you
to use http://ufmod.sourceforge.net/ ufmod ( rather than using an external library like bass.dll ).
Then put the music into the res of your application and load it from there.

Cheers :)
___________
JM-DG