PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

MOD player confusion - licensing

Hi,

I have posted this query on the Pocket-PC-Game-Programming Yahoo! Group but I think I should of raised this here as this is where I found out about libmikmod and fmod.

I am about to add a sound library to my project. I am going to sell the finished product for $19.99us at the most. I have spoken to fmod.org and it looks like a license is going to cost me $200us as I am only a small developer and this product is not going to sell in the 1000s. I have also had a look at libmikmod which is under a GPL
license which as far aas I can make out means I have to include the GPL license with my product and the source if I change anything (not going to happen!)

My problem:
Do I go with FMOD or do I risk a complicated license with libmikmod?

Has anybody release an application with either of these libraries which is not freeware/shareware?
What are your opinions?

Thanks in advance
Bad
Nutcracker also costs $19,95 and uses MikMod. MikMod is LGPL'ed, wich means that you don't need to distribute anything (not even the license, as far as I know) and you need to distribute the source code FOR THE LIBRARY only when you modified it... Wich I didn't. :)
and you dont even have to distribute that, unless asked for it :)
And you can even charge a reasonable ($20 or so) fee for handling and shipping the source code to the requestor, via the media and route you choose. So if it takes 8 weeks to archive everything up, check it, burn the CD-ROMs, and snail-mail it, then that's the way it goes. :)

Dan East
Thanks for the replys.

I was under the impression that with a GPL license I had to make the source of my own product available.

Also, whilst I have been deciding what to do another wav mixer has come to my attention from Pocket-G. Has anybody used their library? How does it rate in terms of ease of use against MikMod?

Thanks in advance

Bad
Well, I haven't heard a really good legal interpretation (at least one I could understand) about the whole GPL deal. If you are concerned about it affecting your source, you could very easily build a DLL with the GPL'ed source, and just have your app load that DLL. DLLs are very easy to create, and if you link your app to it statically then it's just as easy to use.

Dan East
Thank's Dan, I thought it was just me being a little slow when trying to understand the license.

.dll'ing and linking sounds like a very possible solution.

Somebody has worked very hard on mikmod, it's a shame the GPL license has made me, and probably other developers, very wary of using it. Maybe the owner should think about selling it as a library for a (very) small fee. That way it would be easier to understand where you, the developer, stands.

Bad
I'm not sure it is as simple as that. I have been reading the Lesser GPL (not easy to understand so if I am wrong sorry) and I am worried about this bit:

 6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.

I think it means if you statically link to the library you need to let people modify/reverse engineer your game???
The "combine or link" they are referring to would be the linking of object files, so your application contains the binary code of the GPL'ed source. The key phrase is "to produce a work containing portions of the Library".
If you simply dynamically link to, and call the code of the library, then you are not integrating it into your product.

Think about it. If I produced a DLL containing GPLed source, would every 3rd party app that used it have to release their source? How about the OS? It has to load and call functions in the DLL when it loads it for the app. Would MS have to release the source to Windows XP because some DLLs were installed with GPL'ed source?

Dan East
Ian Ferguson · 26 Nov 2001, 09:04 UTC
Is the CE mikmod library Jacco used the one available at
http://www.xsolution-online.de/mikmodce.htm
and if so does it only work on iPaq / ARM ?
If it's only iPaq then this limits the options for a market so the other library may be worth it though $200 is a bit steep.

I keep meaning to check mikmod out but sound always gets pushed to the bottom of my priority list :)

Ian
Dan:

Yes, true. In that case I think the only requirement is making the source code for the library available for download on your site. It says in the license if you distribute the library then the code must be available 'offering equivalent access to copy the
source code from the same place' and I read equivalent to mean it must be a download link on your site rather than requiring an email asking for it. That would also apply eg. to the handango product page. Or am I wrong?

If instead of using a dll you statically link to it then you need to supply source code for your program I think. I could be wrong though! Does The Nutcracker use a dll?
Okay, there are basically 3 ways to "link".

First, anytime you build an app (or dll), each source file in your project is compiled to an object file. Each of those object files are then linked together to form the binary. All those objects become part of your app.

Second, you can statically link to a DLL. No part of the DLL you link to is integrated into your app. However, the DLL must loaded for your program to start up.

Last, is dynamic linking. You call a function to load the DLL of your choice (LoadLibrary), and then get the address for each function you want to use.

The second and third methods are identical from the DLL's viewpoint, except that the compiler and linker make things easier for the programmer with the second method. You don't have to do the manual loading.

The first and second methods are TRUE linking, in that the linker is involved.

Dan East
Ian, no, see here:

http://forums.pocketmatrix.com/forums/welcome.pl?board=Phantom&action=display&num=2610&start=0

it wouldnt make much sense if nutracker was using mikmod on mips, sh3, and arm, if it was available only on arm, now would it? :)
I will upload my current version of MikMod later today. I use a separate directory for Win9x and WinCE; but the WinCE version compiles and works just fine for all processors.
When you say "current version" of mikmod, has it changed since the lemmings code was released?
Good point, no, it hasn't. That means that it is already on my site. Just download the latest Lemmings sources and you have MikMod, including a sample application. :)
new bug
yeah, gosh darnit! :)

(Jaybot: yeah, sorry my bad.  good for you Jacco! :)  although, it wasn't capitalized, so technically, its okay in MY book, but htats me, and this is your forum ;)  atleast somebody cares about keeping their forum clean.)