Skip to content

Commit

Permalink
Merge pull request vgmstream#1624 from bnnm/misc-raki-ogg
Browse files Browse the repository at this point in the history
- Fix some play settings not working in groups
- Add some .ogg loops [Kamaitachi no Yoru 2 (PS2)]
- Fix some .ckd [Rayman Legends (XONE)]
  • Loading branch information
bnnm authored Oct 29, 2024
2 parents 7e3c439 + 1ef9392 commit 02d3c3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/base/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
5 changes: 5 additions & 0 deletions src/meta/ogg_vorbis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/meta/ubi_raki.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 02d3c3f

Please sign in to comment.