unmo3 as a static library

Started by mudlord, 1 Nov '16 - 06:38

mudlord

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.

Ian @ un4seen

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.


Ian @ un4seen


mudlord

#4
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. :)