Clock Radio

Testing libXMP

Fri Oct 1 2021 01:24

So what I'm learning about libxmp is it's not designed for memory constrained systems.

I had to allocate like 32K of stack to get it to load a MOD file, then to play it wants to start off allocating like 144K of sample buffers. Not like the module's sample buffers. Just the output frame buffers. XMP is clearly designed for bigger machines.

Even if it was more constrained, there would be a limit to the modules I could play on this. A lot of more modern modules are simply too big to fit their samples into 384K of RAM. I'm currently trying to play the menu music for One Must Fall 2097. I should try something simpler. Even the lowest end Amiga had like 512KB. And IIRC OMF2097 required 2MB on a PC.

So it can play very small MOD files. This one is 7KB.

Qualified success

I think I'll look at OpenMPT tomorrow. There are actually a lot of module engines to choose from! That’s really disappointing, though. XMP is so easy to work with! But I guess that’s the life of the embedded developer. Such beauty is not for me.