Built-in mod player, part 2...

Everything else that doesn't fall into one of the other PB categories.
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Built-in mod player, part 2...

Post by Amiga5k »

Hello everyone, I was surfing around just now and came upon this:
http://pweb.jps.net/~olivierl/

It seems the vc++ source code to this tracker (supports MANY MANY mod formats - like 40 or something) is free and available on this website. I could find no reference to price, or license...and it's billed as 'freeware', so it may be possible to incorporate this into PB for free! I believe it uses ModPlug, which is also available for free...

What do you all think?

Russell

p.s. Didn't Fred come up with a 'quick and dirty' mod setup a few months ago? If memory serves, it was a sort of proprietary module format (x-something I think).
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
freak
PureBasic Team
PureBasic Team
Posts: 5947
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

If it is a C++ source, then the only way to use it is to put it into a dll.
I have found no cpp compiler that produces a lcclink compatible object
format.

Timo
quidquid Latine dictum sit altum videtur
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

freak wrote:If it is a C++ source, then the only way to use it is to put it into a dll.
I have found no cpp compiler that produces a lcclink compatible object
format.

Timo
Yeah and it is a very bad limitation for me !
I was coding a purebasic library allowing to play different sound format but the libs i use are, for some, coded in C++.
Though now, i must split each sound format as a plugin dll (one dll for one format) wich was not my objective : it was to compile an exe staticly with my lib without dll depedencies.
It is really pity that PB doesn't support the C++ language (ok, i know, it is a LCC limitation, not directly a PB one) :(

Amiga5k>the tracker is now opensource (see here ) and you can freely use the ModPlug Sound Library according to the GNU Public License.
I ve coded a ModPlug Decoder for Foobar2000.
I will also use it into my sound library especially done for the purebasic community (free + no royalties).
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Amiga5k
Enthusiast
Enthusiast
Posts: 329
Joined: Fri Apr 25, 2003 8:57 pm

Post by Amiga5k »

KarLKoX wrote:
freak wrote:If it is a C++ source, then the only way to use it is to put it into a dll.
I have found no cpp compiler that produces a lcclink compatible object
format.

Timo
Yeah and it is a very bad limitation for me !
I was coding a purebasic library allowing to play different sound format but the libs i use are, for some, coded in C++.
Though now, i must split each sound format as a plugin dll (one dll for one format) wich was not my objective : it was to compile an exe staticly with my lib without dll depedencies.
It is really pity that PB doesn't support the C++ language (ok, i know, it is a LCC limitation, not directly a PB one) :(

Amiga5k>the tracker is now opensource (see here ) and you can freely use the ModPlug Sound Library according to the GNU Public License.
I ve coded a ModPlug Decoder for Foobar2000.
I will also use it into my sound library especially done for the purebasic community (free + no royalties).
My original thinking was that Fred could include the open-source code into the compiler itself, so that we wouldn't have to worry about any licensing issues at all (like the Blitz compilers using FMOD).
Isn't the core Pure Language written by Fred in C++? If so, wouldn't it be a fairly straightforward process for him to include the ModPlug code into the Pure environment according to the gnu license? I'm not 100% familiar with how the gnu public license works...

Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

As i said, i m working on a sound library especially for purebasic users letting them to play different file format without dependencies (no dll).
I was planning to add support for modules through th Modplug library but as it is coded in C++, it is not possible to use it.
I must recode it to C wich is a very very big task. I managed to do so for MusePack files (wich is a very bad C++ code) with success.
This is why i want pb support C++ language or switch to another linker wich support this language.
Btw the core of pb is done in C with a bit of asm. (librairies)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Hmm, no dependencies, thats nice..cross-platform support?
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

The code is totally modular so it would be trivial to port it to another OS.
I think of adding Linux support though OSS depending of my spare time :)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

How about this one, written in ASM like PB and includes the source.

http://www.programmersheaven.com/search ... ileID=6108

There are restrictions on the license, but perhaps if the original auther could be contacted an agreement could be found.
This programs are free software only and may not be sold other than the cost
of the disk or physical handling. You can redistribute it only in the same
form as you have received it.
The author is Frontman of Crew242, the library was originally written for his game 'Future Dimension.'
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

This engine can't be used because it was done only for DOS and use asm protected mode.
The problem is not to find a module engine (i have some name like mikmod or dumb) but for me, the modplug library is the most accurate opensource replayer.
There are better engine like FMOD or BASS but they are not opensource.
There is also XMP but it is only a unix library (porting it to windows is difficult because this engine use a lot of system mecanism).
Btw, if i can't find one, mikmod will be choosed.
Thanx for the link and the help :)


PS : "my" license will be exactly the same, free for free projects and using it for commercials use will be prohibited.
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Post Reply