From ef8643c1a45207a3c99bbf70dfd33fd6b29c9b48 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 9 Jun 2019 18:41:26 +0200 Subject: [PATCH] Fix some .ogg channel layout [Hatsune Miku Arcade Future Tone (AC)] --- src/meta/ogg_vorbis.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/meta/ogg_vorbis.c b/src/meta/ogg_vorbis.c index b70c863d..9ad81942 100644 --- a/src/meta/ogg_vorbis.c +++ b/src/meta/ogg_vorbis.c @@ -618,6 +618,13 @@ VGMSTREAM * init_vgmstream_ogg_vorbis_callbacks(STREAMFILE *streamFile, ov_callb } } + /* Hatsune Miku Project DIVA games, though only 'Arcade Future Tone' has >4ch files + * ENCODER tag is common but ogg_vorbis_encode looks unique enough + * (arcade ends with "2010-11-26" while consoles have "2011-02-07" */ + if (strstr(user_comment, "ENCODER=ogg_vorbis_encode/") == user_comment) { + data->disable_reordering = 1; + } + ;VGM_LOG("OGG: user_comment=%s\n", user_comment); } }