#163117 - pitcrawler - Tue Sep 23, 2008 12:40 am
I have modified pimpmobile to allow sound effects to be played alongside tunes. The only slight drawback is that you have to manually add sounds to the module files using a music tracker. Although that's quite easy to do with something like ModPlug Tracker.
It allows you to play any sound effect in any of pimpmobile's 32 mixer channels and at any pitch or volume. Say you have a song that uses 16 channels, that means you have 16 free channels for sound effects.
In one folder there is the modified libpimpmobile source code and in the other is a ready-built demo with source code and data files. The only requirement for building the library and demo is that you have a recent version of DevkitARM installed.
The readme file gives you all the info you need.
NB: I am not the original author of pimpmobile, and he is apparently making an official update. But until then, my slightly modified version works just fine. :)
Get it here: libpimpmobile-with-sfx_zip
Last edited by pitcrawler on Tue Sep 23, 2008 2:27 am; edited 1 time in total
#163119 - gauauu - Tue Sep 23, 2008 2:14 am
Now we just need a version of pimpmobile that works for the DS. ;-)
#163224 - pitcrawler - Fri Sep 26, 2008 3:05 am
I thought you had all sorts of mod libraries for the DS.
As far as I can tell, pimpmobile is the only free library for the GBA that is any good. Well, NOW it's good since it can do sound effects. :)
#163227 - kusma - Fri Sep 26, 2008 8:29 am
Thanks a lot for the effort of putting this together :)
Unfortunately, I'm having troubles unpacking the archive once I've downloaded it. WinRAR gives me errors of the kind "Unknown method in <filename>" on what seems to be all files apart from the readme.txt in the root. Should I use some special program to decompress the archive?
#163228 - kusma - Fri Sep 26, 2008 8:38 am
About a DS port: I've been thinking of doing an NDS port, but I never really got around to the part of making it all compile. I've considered using the hardware mixer, but that seems to have too many restrictions to get it to work properly and the pimpmobile mixer is quite fast. It might be worth doing the mixer in software and using the rest of the hardware channels for sound-effects - if I ever get around to do a DS-port, this is what I imagine I'll do for the first version at least.
The API interface for an NDS version will most likely be separate from the GBA-version.
#163237 - gauauu - Fri Sep 26, 2008 7:12 pm
pitcrawler wrote: |
I thought you had all sorts of mod libraries for the DS. |
There are others. But I like pimpmobile.
#163244 - pitcrawler - Sat Sep 27, 2008 12:34 am
kusma wrote: |
Thanks a lot for the effort of putting this together :)
Unfortunately, I'm having troubles unpacking the archive once I've downloaded it. WinRAR gives me errors of the kind "Unknown method in <filename>" on what seems to be all files apart from the readme.txt in the root. Should I use some special program to decompress the archive? |
It will open with the free program 7-zip. (www.7-zip.com) The problem must be that I used the highest compression method in winzip and it's not supported by all versions.
#163245 - pitcrawler - Sat Sep 27, 2008 2:12 am
Oh, and just to let you know, kusma. I have had a few problems with the converter program. When converting more than one .xm file at once, it sometimes misses out some of the samples, depending on which file was converted first. It happened when I had some matching samples between two .xm files, but it also seems to happen under other seemingly random circumstances.
I don't know if anyone else has had this problem, but I'll try and have a good look at it myself and work out what's happening. I already thought of a workaround by using separate sample banks for each song, but that would defeat the object of not having duplicate samples.
#163253 - kusma - Sat Sep 27, 2008 11:07 am
pitcrawler wrote: |
Oh, and just to let you know, kusma. I have had a few problems with the converter program. When converting more than one .xm file at once, it sometimes misses out some of the samples, depending on which file was converted first. It happened when I had some matching samples between two .xm files, but it also seems to happen under other seemingly random circumstances. |
I never heard of that bug before, but I haven't really tested the code that much. I'd love to get a test-case for the issue if you have, though! Anyway, thanks for letting me know.
#163673 - megab - Wed Oct 08, 2008 4:22 pm
I'm also having trouble extracting the files. I downloaded 7zip but its still not extracting them correctly. Would it be possible for you to zip the files up again without as much compression? Thanks!
#163870 - pitcrawler - Tue Oct 14, 2008 2:42 am
Ok, try this link instead. It's a rar file that should open fine with 7zip.
http://www.filefactory.com/file/1d56c3/n/libpimpmobile-with-sfx_rar