Skip to content

XMP module sound support (!8 take two)

nico requested to merge incognico/darkplaces:libxmp into master

This is !8 (closed) targeting master instead of div0-stable, updated for recent makefile changes while also allowing commits from members who can merge to the target branch.

Because libmodplug was removed, @nyov (ping!) added support for the alternative library libxmp, it supports more tracker formats than libmodplug and it is also available for Android NDK.

A bit sad to see this rotting 5 years, I just gave it a shot, it compiles and works fine, I've tested .xm, .s3m and .it files with play2 and the map teamtemple_nex which includes .xm music - all good!

For testing with Windows, a x64 DLL (git tag libxmp-4.4.1-161-g92313f6f) for dlopening by dp is available here. It is the full DLL, supporting all tracker formats (it is also possible to compile libxmp as "-lite" build, then it will only support the most common formats, but that does not matter to the implementation).

I added ifdefs so that when DP_LINK_XMP= is set to anything else than "shared" or "dlopen" it will not use or compile the libxmp related code at all. By default it is set to "dlopen" in the makefiles. Visual Studio (Code) make/solution files are untouched.

Merge request reports

Loading