PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Help Please wanted working ARM mikmod lib...

no matter what I do I cant get the mikmod library to work on an arm device..... can someone please send me a working library (compiled)

no matter what I do it will not load a music (.it) file.... just wont do it (fullstop) get null returned from the load command, meaning it cant "load" the file..., I've an older Mips lib that works fine (not changes to my main program, it just works).... but when I compile the new version it does not work for mips either, since I cant find the old version etc or the code that I built the working mips lib from I was hoping someone would be able to send me a working copy for the ARM device.... and I'll just use what I've got for the mips version. Am I making sence.... anyhow...

the file is LibMikModWinCE.lib resides in the lib_arm folder etc....

plz..... I'm at my wits end....

-thanks.....
golan_trevize_x · 13 Sep 2002, 01:20 UTC
hey brendan,

I managed to get mikmod working (the one that came with EasyCE, I think) but I only tried playing 4-channel MOD files.

I have that lib file at home so I can email it to you if you like.
Man, give this guy a medal! thats it... my lib loves the .it, the other does not... I simply replaced a song with a .mod and bingo..... this explains the size difference in libraries 550k to 250k!


next question why wont it load .it's does anyone have the library that does?

-thanks
thats it for sure, upon reading the mikmod notes "again" I came accross the

MikMod_errno() func it returns
"module format not recognised"

which means thats there is a version of mikmod out there that does support .it files..... anyone?

-B
brendan:hmm, I'm not sure but if I remember right the version of mikmod that was ported to PPC was just a simplified old mikmod lib which works only with .mod files.
You might want to either add .it playback capabilities yourself or port a newer version of mikmod to PPC.
Although I haven't looked at it or used in a long time, the port I did of libmikmod should handle .it files just fine. Scroll to the bottom of http://home.earthlink.net/~cps46/ for source.

--
Cliff
OK guys, here's the simple answer: The initial mikmod port supported virtually every format. HOWEVER, for EasyCE I ripped out most formats, since I reckoned that no-one would use anything but mod, since that's a very common format and uses only 4 channels. More channels drain too much CPU power, IMHO. And, they increase the library (and thus executable) size.

Apparently, lots of people are now using the 'EasyCE version' of mikmod, WIHTOUT the extra formats. So it's a matter of finding the old version and you have all formats back. And the extra size, of course. :)

Suggestion: Rip out all formats but the one you need, and create your own mikmod mutant. ;)
No worries, I managed to find a copy.... it's made the size about 100k bigger on the exe, but hey with 64mb+ devices now days "who cares"... so thanks to everyone who helped me out, its now fully firing, btw if you want a copy of the lib send me an email!

(.it's are way cooler than .mods) ;-)

-Brendan
golan_trevize_x · 17 Sep 2002, 01:05 UTC — I would!
I'd like a copy of that Brendan!

Do you find that the IT files slow down your game much more than the MOD files? How many channels are the ones you're using?
Guest · 17 Sep 2002, 01:39 UTC — Use s3ms
I would suggest if you add a format, it would be s3m. Its basically the same as the normal mod format with support for tempo adjustment and also alows for varying length tones. I was able to easily convert a Midi to a decent sounding s3m, but to a Mod is much tricker......


Dillrye(didnt log in)
yer, they sound great, with mikmod you can select as many tracks as you require, since my game is not to graphic intensive, I can mix 6 channels no worries... but you can easly mix more... Im running a 11kHz std, with a setting option of going to 22Khz (if you have a faster system ARM+, works ok on my E125)

.its and .s3m's are just so much better than .mods...

-Brendan
golan_trevize_x · 17 Sep 2002, 06:11 UTC
Actually that was my reason for wanting to know - I don't fancy composing things in MOD format! I'd like to just convert from MID with soundfonts.

Hey Dillrye, are you using MODPlug tracker to make the conversion? Or another technique?
btw, for those interested the link above is where I got it! I read that after I found it with google!

http://home.earthlink.net/~cps46/

;-)
Conan · 17 Sep 2002, 13:00 UTC — A few pointers on getting it working
Brendan

Can you give a quick guide to getting mikmod working using your suggested download and also can you tell me what a .it music file is?

ps: Have just read that PocketFrog is getting bitmap rotation / stretching shortly.
.it is the famous Impulse Tracker, kinda similar in sound only to MODs. Generally accepted as being more versatile than MOD files.

Official page, with more tech details here: http://www.noisemusic.org/it/
Golan, I did use modplug tracker. Sm3s actually sounded semi decent, I have converted stuff to actual MOD, but that takes a little more work since its missing ALOT of features. I have had to do a few goofey things like play a NULL Instrument to get certian sounds to stop right when I want them too, but for sm3s theres a command for it.

Most of this I figured out after talking to you on MSN messanger that one day, sorry I havent talked to you since, but I normally dont run MSNM, I like my Aim :).
Conan · 19 Sep 2002, 14:45 UTC — Mikmod working with PocketFrog
Message to Brendan

Your code snippet worked fine and mikmod worked first time with PocketFrog.

One wee question. What does:-
//mikmod: you must call this to update the ausio every now and then:
MikMod_Update();
mean. I just put it at the end of my main loop & the song plays fine. I will read the docs soon.

( currently listening to a nice .mod version of A Ha's "Take on Me". (One of the best music videos ever)

btw: On my iPaq h3650 mikmod does not seem to like when the iPaq is switched off with the music playing. The PocketPC freezes and the sound stops when switched off. This happens both with my own code and the sample mikmod player. Any ideas?
well aside from my typo, I believe that this func continues to mix the wavs and place them into the buffer to be played..... thats why you can't play or call system funcs to use sound etc, as mikmod has "taken control" so to speak,

if you leave it too long before you call this func then the buffer runs dry,

this func etc sets the size of the buffer:

MikMod_SetWinCEBufferSize(80);

I found anything less than about 60ms music started to "crack up" when the game was getting to cpu intense.

you can base it on your "main" loop time, i.e if your running at 25fps then just over 40 should be enough (1000 / 25), 50 should be fine. the smaller you can get this figure the better, e.g if you play a sound (i.e explosion), then mikmod starts to mix in the sound, but it will not be heard until 50ms later in the above example, which means if your not careful you get audio / graphic de-sync.....

-B
Brenden, Do you ever play sounds without the music playing? If you do, do you ever get a sort of soft static in the background?
Conan · 22 Sep 2002, 21:48 UTC — Update on sound tests
I have now tried out mikmod and FMOD. It's pretty obvious that FMOD takes less processor power as my 3D stuff is decidedly stuttery when mikmod is going but not so with FMOD. They both have the same power off/on problem though :(

FMOD seems to be much simpler to use though of course it's $100 per game for a shareware author
Apparently I remember reading somewhere that you can modify the mikmod code to run quicker by removing unnessasary adjusting i.e "volume etc", I think jacco may know?

-Brendan