Issues I know: - if the "fmt" chunk is found first "XMA2" is ignored (@ wavdec.c) - "XMA2" chunk: no V3 = size 0x24 (minor variation), expects V4 = size 0x2c (@ wavdec.c) - no XMA2 6 channel (@ wmaprodec.c) - no RIFX/big endian (also I'll check if various block sizes are supported)
The 6ch is the only one I can't hack into vgmstream, so it would be great if you could look into that first.
***
Also I couldn't find a XMA1 set with loop points. I'm blind, loop points are outside, or is every joshw set borked/transconverted? :S
The >2 channel in XMA1/2 is one big mess, i failed to dechiper it. Perhaps someone can explain to me how to implement it because it needs big blocks of data. I'm well aware of scripts which splits such streams into stereo files.
I don't know if His World actually loops in-game, so I'm not sure there are loop points in that file... I'll upload the one I've been using just in case: here.
I tested with vgmstream a bit and generally works fine, but there are some problems when looping/seeking. Seems channel packets are being mixed (ex. packets from ch0 will appear in ch2, etc).
Looping works by using avformat_seek_file to 0 + avcodec_flush_buffers, and decoding again until the desired sample.