From 5b2af49f57f70ad516e6e778cbf06c6f93bc8f00 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 17 Jun 2018 00:50:42 +0200 Subject: [PATCH] Fix some .wem [Guitar Hero Live (X360)] --- src/meta/wwise.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meta/wwise.c b/src/meta/wwise.c index 4871a53f..f7653461 100644 --- a/src/meta/wwise.c +++ b/src/meta/wwise.c @@ -417,7 +417,8 @@ VGMSTREAM * init_vgmstream_wwise(STREAMFILE *streamFile) { off_t xma2_offset; size_t xma2_size; - if (ww.fmt_size != 0x20 && ww.fmt_size != 0x34 && ww.fmt_size != 0x40) goto fail; /* XMA1, XMA2old, XMA2new */ + /* endian check should be enough */ + //if (ww.fmt_size != ...) goto fail; /* XMA1 0x20, XMA2old: 0x34, XMA2new: 0x40, XMA2 Guitar Hero Live/padded: 0x64, etc */ if (!ww.big_endian) goto fail; /* must be Wwise (real XMA are LE and parsed elsewhere) */ if (find_chunk(streamFile, 0x584D4132,first_offset,0, &xma2_offset,&xma2_size, ww.big_endian, 0)) { /*"XMA2"*/ /* older Wwise */