Author Topic: unmo3 as a static library  (Read 10598 times)

mudlord

  • Posts: 7
unmo3 as a static library
« on: 1 Nov '16 - 06:38 »
Hey,
I was just wondering if its possible to have unmo3.dll as a static library?

I can understand the reasons as to not:
* commercial reasons (such as trade secrets for the handmade Vorbis decoder inside it, I would imagine MP3 is decoded by ACM codecs, or potentially yet another handmade MP3 decoder.)
* wanting to easily identify that a intro/demo uses MO3.

The reason I ask is solely due to smaller code size. Atm I am using a demoscene oriented packer, and I am thinking it can beat the current PEtite compressor on the current unmo3.dll. I could manually unpack the DLL and then use a handmade DLL loader that I use in my own exe packer to then load the DLL from memory, but I rather avoid that as much as possible as that would take time.




...
Or I suppose I could use OpenMPT's code as a guide when writing my own MO3 parser and somehow use Windows ACM to decode MP3 only MO3s in a specially modified XM playback routine. But that will completely destroy the deadline for my demo.
« Last Edit: 1 Nov '16 - 07:30 by mudlord »

Ian @ un4seen

  • Administrator
  • Posts: 26083
Re: unmo3 as a static library
« Reply #1 on: 1 Nov '16 - 17:30 »
I'm afraid there isn't a static version of the UNMO3 library, but if you like I could give you an uncompressed version to use your own packer on.

mudlord

  • Posts: 7
Re: unmo3 as a static library
« Reply #2 on: 1 Nov '16 - 20:49 »
That would be excellent :D

Ian @ un4seen

  • Administrator
  • Posts: 26083
Re: unmo3 as a static library
« Reply #3 on: 2 Nov '16 - 17:21 »
OK, here's the uncompressed version:

   www.un4seen.com/stuff/unmo3.dll

mudlord

  • Posts: 7
Re: unmo3 as a static library
« Reply #4 on: 2 Nov '16 - 21:12 »
Thanks, managed to save 20KB of space overall in the intro, and 8kb in unmo3.dll, which is plenty for some extra textures or shaders. :)
« Last Edit: 2 Nov '16 - 21:21 by mudlord »