24 May '13 - 15:53 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: unmo3 as a library?  (Read 11061 times)
saga
Posts: 1365


« on: 26 Oct '08 - 22:31 »
Reply with quoteQuote

Hey Ian,
I was wondering if you could provide the unmo3 thingy rather as library than an executable? That way, it would probably be easier to be implemented into other applications and you sure want this be done. Smiley I'm thinking about OpenModplug in this case, I joined the devteam some weeks ago. It would be a nice thing to have this as a library as this would be less confusing to users (what? 2 executables in the folder?) and prolly also easier to handle (call a function, pass the filename, get a pointer).
Logged
Ian @ un4seen
Administrator
Posts: 15275


« Reply #1 on: 27 Oct '08 - 14:52 »
Reply with quoteQuote

That may be possible. Give it a few days, and I'll see what I can do Smiley
Logged
saga
Posts: 1365


« Reply #2 on: 15 Nov '08 - 13:44 »
Reply with quoteQuote

any news on this? Smiley

what i forgot to mention above is that also the length of the uncompressed module has to be returned, so a function like this would be fine:

convertmo3(filename, pointer, length)
and the library would fill in the pointer and length stuff.
Logged
Ian @ un4seen
Administrator
Posts: 15275


« Reply #3 on: 17 Nov '08 - 15:06 »
Reply with quoteQuote

OK, here's something to try Smiley

   www.un4seen.com/stuff/unmo3dll.zip

Let me know if there any problems with it.
Logged
saga
Posts: 1365


« Reply #4 on: 17 Nov '08 - 17:57 »
Reply with quoteQuote

i'll try it as soon as i can find some spare time and let you know if there's anything that's not clear. Smiley
I have one question in advance, though: is there a way to include the library into the program's exe?
« Last Edit: 17 Nov '08 - 17:59 by saga » Logged
Ian @ un4seen
Administrator
Posts: 15275


« Reply #5 on: 19 Nov '08 - 16:35 »
Reply with quoteQuote

Would that be permitted by Modplug's GPL licence? I'm not sure.

Interestingly, there is a GPL UNMO3 package made from the unofficial specs, which should be fine for you to incorporate into Modplug...

   http://gnu.ethz.ch/debian/unmo3/
Logged
saga
Posts: 1365


« Reply #6 on: 19 Nov '08 - 19:43 »
Reply with quoteQuote

i guess i'd have to talk with the other devs about gpl issues first then. although i have in mind that some license changes were planned / discussed some time ago, but i don't know exactly...
Logged
saga
Posts: 1365


« Reply #7 on: 18 Jan '09 - 19:36 »
Reply with quoteQuote

okay, so today I've finally tried to work on the mo3 import again. Smiley
Everything is working nicely, but I've found that a little change in the .dll may be useful because of the lacking of a proper header in .MOD files.
Due to the way our code is structured, I need a little change in the parameters of UNMO3_Decode.
Instead of passing a filename, I would like to try to pass the pointer to the compressed module and the length and receive a new pointer and a new length. Could you please update the dll for this? Smiley
-saga

BTW: We've moved on to the BSD license now. Smiley
Logged
Ian @ un4seen
Administrator
Posts: 15275


« Reply #8 on: 19 Jan '09 - 15:30 »
Reply with quoteQuote

Due to the way our code is structured, I need a little change in the parameters of UNMO3_Decode.
Instead of passing a filename, I would like to try to pass the pointer to the compressed module and the length and receive a new pointer and a new length. Could you please update the dll for this? Smiley

Yep, here's an update to try...

   www.un4seen.com/stuff/unmo3dll.zip
Logged
saga
Posts: 1365


« Reply #9 on: 19 Jan '09 - 17:45 »
Reply with quoteQuote

Thanks a lot, that did the trick Smiley
Logged
kode54
Posts: 24


« Reply #10 on: 11 Oct '09 - 04:23 »
Reply with quoteQuote

What is the license on this and is it okay to redistribute this? I'm thinking of using this instead of unmo3.exe for foo_dumb. It would be a lot more convenient and possibly more secure than piping the module out of unmo3.exe, as I don't really have many security checks on the pipe process. I also tried piping both in and out simultaneously, which failed, and probably not because I was trying to do it all in a single thread. I found this while digging in relation to Open ModPlug Tracker, heh.

(Scatterbrained post brought to you by lack of sleep, a first for me in months.)
Logged
Ian @ un4seen
Administrator
Posts: 15275


« Reply #11 on: 12 Oct '09 - 15:38 »
Reply with quoteQuote

What is the license on this and is it okay to redistribute this? I'm thinking of using this instead of unmo3.exe for foo_dumb.

The UNMO3.DLL is free for non-commercial use (like UNMO3.EXE), so that sounds fine.
Logged
Zarggg
Posts: 1239


« Reply #12 on: 14 Oct '09 - 15:36 »
Reply with quoteQuote

Good to see you here, kode54. Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines