Merge pull request #1624 from bnnm/misc-raki-ogg

- Fix some play settings not working in groups
- Add some .ogg loops [Kamaitachi no Yoru 2 (PS2)]
- Fix some .ckd [Rayman Legends (XONE)]
This commit is contained in:
bnnm 2024-10-29 23:27:56 +01:00 committed by GitHub
commit 02d3c3f875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -181,6 +181,7 @@ static void play_op_trim(VGMSTREAM* vgmstream, sbuf_t* sbuf) {
if (to_do > buf_samples)
to_do = buf_samples;
sbuf_tmp.filled = 0;
sbuf_tmp.samples = to_do;
int done = render_layout(&sbuf_tmp, vgmstream);
/* no mixing */

View File

@ -739,6 +739,11 @@ static VGMSTREAM* _init_vgmstream_ogg_vorbis_config(STREAMFILE* sf, off_t start,
loop_end_found = 1;
}
}
else if (strstr(comment,"L=") == comment) { /* Kamaitachi no Yoru 2 (PS2) */
//sscanf(strrchr(comment,'=')+1,"%d", &loop_start);
loop_start = atol(strrchr(comment,'=')+1);
loop_flag = 1;
}
/* Hatsune Miku Project DIVA games, though only 'Arcade Future Tone' has >4ch files
* ENCODER tag is common but ogg_vorbis_encode looks unique enough

View File

@ -183,7 +183,8 @@ VGMSTREAM* init_vgmstream_ubi_raki(STREAMFILE* sf) {
#endif
#ifdef VGM_USE_FFMPEG
case 0x58333630786D6132: { /* "X360xma2" */
case 0x58333630786D6132: /* "X360xma2" */
case 0x44757261786D6132: { /* "Duraxma2" */
/* chunks: "seek" (XMA2 seek table), "data" */
if (!block_align) goto fail;