From f6d5c0cc4ca6a0634558617159907983ec0ee2ed Mon Sep 17 00:00:00 2001 From: Tyrone Trevorrow <819705+tyrone-sudeium@users.noreply.github.com> Date: Sat, 18 Nov 2023 10:57:52 +1100 Subject: [PATCH] Midi: opt FluidSynth into NeedsSoftReset (Fixes #3135) --- src/decoder_fluidsynth.cpp | 4 ++++ src/decoder_fluidsynth.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/decoder_fluidsynth.cpp b/src/decoder_fluidsynth.cpp index a4d6bf3c925..2c6506d023e 100644 --- a/src/decoder_fluidsynth.cpp +++ b/src/decoder_fluidsynth.cpp @@ -347,4 +347,8 @@ fluid_synth_t *FluidSynthDecoder::GetSynthInstance() { } } +bool FluidSynthDecoder::NeedsSoftReset() { + return true; +} + #endif diff --git a/src/decoder_fluidsynth.h b/src/decoder_fluidsynth.h index a5e2896d8f3..f0799413e30 100644 --- a/src/decoder_fluidsynth.h +++ b/src/decoder_fluidsynth.h @@ -69,6 +69,8 @@ class FluidSynthDecoder : public MidiDecoder { #endif }; + bool NeedsSoftReset() override; + private: #if defined(HAVE_FLUIDSYNTH) || defined(HAVE_FLUIDLITE) fluid_synth_t* GetSynthInstance();