It is currently Wed Apr 01, 2020 1:51 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: miniFMOD v1.70 for PureBasic > 3.92
PostPosted: Sat Dec 18, 2004 10:52 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sun Apr 27, 2003 4:41 pm
Posts: 1661
Location: Germany
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:
Quote:
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! :)

_________________
Good programmers don't comment their code. It was hard to write, should be hard to read.


Last edited by traumatic on Fri Mar 17, 2006 8:08 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Dec 19, 2004 12:49 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 3:30 pm
Posts: 174
Hi !
Nice :)

MFG
WolfgangS

_________________
WolfgangS' projects http://www.schliess.net
Quotation of the month:
<p3hicy>oder ich hol mir so eine geile aus asien
<p3hicy>die ständig poppen will
<p3hicy>'n brötchen pro tag reicht doch
<p3hicy>die essen eh' nich so viel


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Dec 19, 2004 1:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 7:44 pm
Posts: 465
Location: end of www
Wow ... excellent.

Thanks, traumatic :!:

_________________
regards,
benny!
-
pe0ple ar3 str4nge!!!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 20, 2004 9:32 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Apr 25, 2003 5:06 pm
Posts: 265
Location: Gummersbach - Germany
Hi traumatic!

Could you please release the source of the purebasic library?

_________________
The Human Code Machine / Masters' Design Group


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 20, 2004 7:20 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sun Apr 27, 2003 4:41 pm
Posts: 1661
Location: Germany
THCM wrote:
Could you please release the source of the purebasic library?

Sir, yes, sir! 8)

http://files.connection-refused.org/minifmod170_pb_src.zip

_________________
Good programmers don't comment their code. It was hard to write, should be hard to read.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 4:46 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Apr 27, 2003 1:54 am
Posts: 102
this is a great library...but is it possible to add a function to control the volume of the music?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 5:30 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sun Apr 27, 2003 4:41 pm
Posts: 1661
Location: Germany
Just grab the source and give it a go. :)

_________________
Good programmers don't comment their code. It was hard to write, should be hard to read.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 6:13 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Apr 27, 2003 1:54 am
Posts: 102
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?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 7:25 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sun Apr 27, 2003 4:41 pm
Posts: 1661
Location: Germany
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:
waveOutSetVolume(FSOUND_WaveOutHandle, 0x4711);

Good luck! :)

_________________
Good programmers don't comment their code. It was hard to write, should be hard to read.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 7:41 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Apr 27, 2003 1:54 am
Posts: 102
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 :(


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 7:48 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sun Apr 27, 2003 4:41 pm
Posts: 1661
Location: Germany
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?

_________________
Good programmers don't comment their code. It was hard to write, should be hard to read.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 8:16 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Apr 27, 2003 1:54 am
Posts: 102
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!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 10:28 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Apr 27, 2003 1:54 am
Posts: 102
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).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 03, 2005 11:12 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Oct 06, 2003 7:13 pm
Posts: 670
Location: France
Put somewhere in the sourcecode :

Code:
int _ftol2;

_________________
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 04, 2005 12:27 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Apr 27, 2003 1:54 am
Posts: 102
It made the POLINK errors disappear and xmplay.pb runs...but crashes immediately. Maybe CodeBlocks didn't correctly import the VC6 source after all?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye