ws-audio2: music/umx (Unreal music packages): the package tables parsed, the music export's module handed to a new api hook opts.decodeModule(buf, format?)

src/Formats/init.luau: withHooks adds opts.decodeModule (F.load of the bytes as music) next to decodeImage /
openAudio, so a format never requires another; docs/API.md lists it. Backward compatible (a new optional hook).
This commit is contained in:
4DBug committed 2026-10-31 14:54:54 -05:00
1 parent 3d5cf3130e
commit 26fa887370
8 files changed
+368 -1

No files matched your search

+12
View File
@@ -986,6 +986,18 @@ local list: { Entry } = {
return require("@formats/music/ult")
end,
},
{
name = "umx",
category = "music",
path = "music/umx",
extensions = { "umx" },
mime = { "audio/x-umx" },
deps = { "core/Err", "core/Bytes", "Types", "codecs/audio/Tracker" },
caps = { decode = true, encode = false, render = true, container = true },
load = function()
return require("@formats/music/umx")
end,
},
{
name = "xm",
category = "music",