mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 07:44:43 +01:00
Fix looping .bgm Ogg Opus [Utawarerumono: Mask of Truth (PC)]
This commit is contained in:
parent
cf7ef5067a
commit
cf53f38c53
@ -16,8 +16,9 @@ VGMSTREAM * init_vgmstream_ogg_opus(STREAMFILE *streamFile) {
|
|||||||
|
|
||||||
/* checks */
|
/* checks */
|
||||||
/* .opus: standard, .lopus: fake extension for plugins
|
/* .opus: standard, .lopus: fake extension for plugins
|
||||||
* .ogg: less common, .logg: same */
|
* .ogg: less common, .logg: same
|
||||||
if (!check_extensions(streamFile, "opus,lopus,ogg,logg"))
|
* .bgm: Utawarerumono: Mask of Truth (PC) */
|
||||||
|
if (!check_extensions(streamFile, "opus,lopus,ogg,logg,bgm"))
|
||||||
goto fail;
|
goto fail;
|
||||||
if (read_32bitBE(0x00,streamFile) != 0x4F676753) /* "OggS" */
|
if (read_32bitBE(0x00,streamFile) != 0x4F676753) /* "OggS" */
|
||||||
goto fail;
|
goto fail;
|
||||||
@ -78,6 +79,13 @@ VGMSTREAM * init_vgmstream_ogg_opus(STREAMFILE *streamFile) {
|
|||||||
else if (strstr(user_comment,"TITLE=")==user_comment) { /* for detection */
|
else if (strstr(user_comment,"TITLE=")==user_comment) { /* for detection */
|
||||||
has_title = 1;
|
has_title = 1;
|
||||||
}
|
}
|
||||||
|
else if (strstr(user_comment,"LoopStart=")==user_comment) { /* Utawarerumono: Mask of Truth (PC) */
|
||||||
|
loop_start= atol(strrchr(user_comment,'=')+1);
|
||||||
|
loop_flag = (loop_start >= 0);
|
||||||
|
}
|
||||||
|
else if (strstr(user_comment,"LoopEnd=")==user_comment) { /* LoopStart pair */
|
||||||
|
loop_end = atol(strrchr(user_comment,'=')+1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//;VGM_LOG("OggOpus: user_comment=%s\n", user_comment);
|
//;VGM_LOG("OggOpus: user_comment=%s\n", user_comment);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user