PDA

View Full Version : BASSMOD Library


matteo.m
01-18-2007, 12:08 AM
Hello everyone! PPL it come with the hekkus library that support waw,ogg and mod files. This is wonderful for most of music purposes but for people used to be on the "demo scene" the mod file support is not enought. So looking and surfing on the net I found this BASSMOD library http://www.un4seen.com/ that is a good free library for not commercial purposes. What this library do is to give you the opportunity to play "xm" and "it" music module files. This music module format is an evolution of the mod format that was initialy created on Amiga commodore computer platform. Of course this mean more sound quality and performance. Also it will be easy to make an it (impulse tracker) file converting a midi file.
So here i attach a zip file that contain the two original BASSMOD DISTRIBUTION one for the PC and one for the PPC , an example PPL project that use this library loading two song from a package file (music.pkg) and make you able to play it and show the error state of BASSMODE.
What you have to do at first to be able to use properly this project is to copy the BASSMOD.dll into the folder where is installed the runtime PPL.exe. Also in your project that want to use this library you will have to include the file BassMod.ppl .
A last thing: many thanks to Eric and Alain that made this possible. [br]1169078901_8_FT0_bassmod.zip

kornalius
01-18-2007, 01:40 AM
Wow great work Matteo. Thanks for your contribution.

PointOfLight
01-23-2007, 06:25 AM
Just a quick note that Alain asked me to post. There are 3 steps to "cleaning up" an instance of BASSMOD. They are as follows:

BASSMOD_MusicStop;
BASSMOD_MusicFree;
BASSMOD_Free;

BASSMOD_MusicStop and BASSMOD_MusicFree should be called every time you're done with a particular .MOD file. BASSMOD_Free would be called right before you exit your application. If you exit your app without calling MusicFree or Free, the application will still terminate correctly (though this really isn't good programming practice). However, if you fail to call MusicStop before exiting, and you are running through the PIDE, it will appear that the program has stopped, but PPL.exe will still be running, and you will need to terminate it through Task Manager.