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:
1 parent
3d5cf3130e
commit
26fa887370
8 files changed
+368
-1
No files matched your search
@@ -84,6 +84,8 @@ A format never requires another format, so the api passes these to decoders / en
|
||||
|
||||
- `opts.decodeImage(buf) -> Image | nil, Err` and `opts.encodeImage(img, format) -> buffer | nil, Err`: images inside
|
||||
other files (ICO PNG entries, PSD / glTF / 3MF textures, MJPEG frames, ...).
|
||||
- `opts.decodeModule(buf, format?) -> Module | nil, Err`: tracker modules inside other files (the module of an Unreal
|
||||
`.umx` package), loaded as music.
|
||||
- `opts.openAudio(demuxer, track) -> Decoder | nil, Err`: audio tracks of video containers (wrapped by
|
||||
`containers/AudioWrap` and opened as the matching audio format).
|
||||
- `opts.plugins` (default `F.plugins`): injected optional dependencies, e.g. `F.plugins.brep` (a B-rep kernel for
|
||||
|
||||
Reference in new issue
Block a user