Page 1 of 2
miniFMOD v1.70 for PureBasic > 3.92
Posted: Sat Dec 18, 2004 10:52 pm
by traumatic
I know this has been done before but AFAIK none of the libraries work
in newer versions of PureBasic (and don't allow for own callbacks) ...
from fmod.org:
This small XM replay system only adds 5k to your exe!
Pre-buffered output for 0 latency, and high output stability
100% click free.
XM sample callbacks for user generated or compressed XM samples!
File system callbacks so you can specify whatever loading system you like! (disk/wad/memory)
This version adds about 10kb to your exe because all effects have been
included. That way all XMs can be properly played.
Get it here:
http://files.connection-refused.org/minifmod170_pb.zip
Thank you AlphaSND!

Posted: Sun Dec 19, 2004 12:49 pm
by WolfgangS
Hi !
Nice
MFG
WolfgangS
Posted: Sun Dec 19, 2004 1:51 pm
by benny
Wow ... excellent.
Thanks, traumatic

Posted: Mon Dec 20, 2004 9:32 am
by THCM
Hi traumatic!
Could you please release the source of the purebasic library?
Posted: Mon Dec 20, 2004 7:20 pm
by traumatic
THCM wrote:Could you please release the source of the purebasic library?
Sir, yes, sir!
http://files.connection-refused.org/min ... pb_src.zip
Posted: Wed Aug 03, 2005 4:46 pm
by chris_b
this is a great library...but is it possible to add a function to control the volume of the music?
Posted: Wed Aug 03, 2005 5:30 pm
by traumatic
Just grab the source and give it a go.

Posted: Wed Aug 03, 2005 6:13 pm
by chris_b
I don't really know anything about C or C++ but I guess I could see if I can figure something out.
Will the source work with the free MS Visual C++ Toolkit?
Posted: Wed Aug 03, 2005 7:25 pm
by traumatic
chris_b wrote:Will the source work with the free MS Visual C++ Toolkit?
Most likely yes.
As minifmod is using winmm, you might want to look for "waveOutSetVolume ()".
Something like:
Code: Select all
waveOutSetVolume(FSOUND_WaveOutHandle, 0x4711);
Good luck!

Posted: Wed Aug 03, 2005 7:41 pm
by chris_b
traumatic wrote:chris_b wrote:Will the source work with the free MS Visual C++ Toolkit?
Most likely yes.
Well, I've installed the Visual C++ Toolkit and downloaded your source files but to be honest I have no idea where to start...
Before I try changing the source code I just want to compile the "Minifmod170" file that goes in the PureBasic "UserLibraries" folder, but I've tried Googling for help and have no information about what I should do

Posted: Wed Aug 03, 2005 7:48 pm
by traumatic
Well, I guess I can't help you here. The source-zip contains the project-
workspace for VC6, maybe "Codeblocks" or any other free VC-IDE can
convert this file. If it's just about adding a volume control, I may find some
time to implement this but I can't promise anything as time is one of the
things I rarely have. So this may take a month or two...
Maybe someone else can help you out?
Posted: Wed Aug 03, 2005 8:16 pm
by chris_b
Thanks! Codeblocks looks like the starting point I needed

It automatically detected the VC++ Toolkit and it seems to import the project workspace from your source OK so I'm all set for some experimenting!
Posted: Wed Aug 03, 2005 10:28 pm
by chris_b
well everything seems to work (the PureBasic Library Maker warns that there is "no debugger routine" for the functions but I guess that's normal) but when I try to run the example xmplay.pb I get:
POLINK: warning: Multiple '.data' sections found with different flags (0xc0000040 and 0x60000040).
POLINK: error: Unresolved external symbol '__ftol2'.
POLINK: fatal error: 1 unresolved external(s).
Posted: Wed Aug 03, 2005 11:12 pm
by KarLKoX
Put somewhere in the sourcecode :
Posted: Thu Aug 04, 2005 12:27 am
by chris_b
It made the POLINK errors disappear and xmplay.pb runs...but crashes immediately. Maybe CodeBlocks didn't correctly import the VC6 source after all?