Need Help Using Mikmod


kevin

Still Fresh
Joined
Mar 19, 2006
Messages
17
Location
Netherlands
Website
Visit site
Hi,

I've tried using the mikmod sound library directly (without SDL), and even linking the libmikmod library file hangs the device. Does it need additional libraries/compiler options?

We're using the libraries from theoddbot at wiki.gp2x.com

Maybe someone can post a working example (preferably with a compiled .gpe program)?



This is our current compile script:
Code:
@set OLDPATH=%PATH%
@set PATH=%PATH%;C:\_Build\devkitGP2X\bin;C:\_Build\devkitGP2X\arm-linux\bin

arm-linux-g++ -I "." -D__GP2X__ -c helloworld.cpp -o helloworld.o

arm-linux-g++ helloworld.o -ldl -lmikmod -o helloworld.gpe

@set PATH=%OLDPATH%
 
Alright, linking the library seem to work correctly now (we're able to play wav files successfully). To get it to work we've removed some of the library files, only libmikmod.a will be linked.

The only problems that are left is that calling MikMod_RegisterLoader(&load_mod) will hang the device. Also there is a delay (around 2 seconds) before a sound will play. Any clues?
 
Back
Top