From ce295d4591d8ea3b9ffb06e14a8a2a8b56f76b7e Mon Sep 17 00:00:00 2001 From: bnnm Date: Mon, 29 May 2023 00:31:50 +0200 Subject: [PATCH] Add FSB Opus [LEGO 2K Drive (Switch)] --- src/meta/fsb5.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/meta/fsb5.c b/src/meta/fsb5.c index 1b893772..909510b1 100644 --- a/src/meta/fsb5.c +++ b/src/meta/fsb5.c @@ -488,10 +488,9 @@ VGMSTREAM* init_vgmstream_fsb5(STREAMFILE* sf) { vgmstream->interleave_block_size = 0x8c; break; -#if 0 //disabled until some game is found, can be created in the GUI tool #ifdef VGM_USE_FFMPEG - case 0x11: { /* FMOD_SOUND_FORMAT_OPUS */ - int skip = 312; //fsb_opus_get_encoder_delay(fsb5.stream_offset, sb); /* returns 120 but this seems correct */ + case 0x11: { /* FMOD_SOUND_FORMAT_OPUS [LEGO 2K Drive (Switch)] */ + int skip = 312; //fsb_opus_get_encoder_delay(fsb5.stream_offset, sb); /* returns 120 but this seems correct in test files */ //vgmstream->num_samples -= skip; vgmstream->codec_data = init_ffmpeg_fsb_opus(sb, fsb5.stream_offset, fsb5.stream_size, vgmstream->channels, skip, vgmstream->sample_rate); @@ -500,7 +499,6 @@ VGMSTREAM* init_vgmstream_fsb5(STREAMFILE* sf) { vgmstream->layout_type = layout_none; break; } -#endif #endif default: vgm_logi("FSB5: unknown codec 0x%x (report)\n", fsb5.codec);