PDA

View Full Version : playing a mod music file


UPucker
07-16-2005, 09:07 AM
I need to play a mod file. Im writing an win32 asm, and need some help. I can use bassmod, but I want to have everything in one exe without using a dll or needing any external files.

Can anyone point me in the right direction

or even how to include the dll in the exe?

JimmyClif
07-16-2005, 09:30 AM
PEBundle >> http://www.bitsum.com/pebundle.asp

Silver
07-16-2005, 09:37 AM
UPucker, research demoscene community resources. There are loads and loads of open sources for mod players and fasttracker/protracker clones. You will probably be able to build your own lib with the functions you need, rather than hacking bass/fmod/modplug etc to do what you need.

Neitsa
07-16-2005, 11:55 AM
There's a minifmod portage for MASM32 (MFMLIB)

This one was translated by Pegasus from REN. (See attachement).

Put your XM in your resource file and do a couple of operation to get a pointer to it :

-FindResource
-SizeOfResource
-LoadResource
-LockResource

Read carefully the .inc everything is explained for the lib itself.

UPucker
07-17-2005, 11:28 AM
I found mfmplay while looking around right after I posted this. It worked like a charm. Thanks for the help.