From 356b0159c743ab9ae56437b8eacefad9783b73bd Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 30 Apr 2025 07:27:57 +0100 Subject: [PATCH] Fix 261e09a549: Compilation failure with Fluidsynth enabled. (#14167) --- src/music/fluidsynth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music/fluidsynth.cpp b/src/music/fluidsynth.cpp index 5d1a0bf01b..d428a14123 100644 --- a/src/music/fluidsynth.cpp +++ b/src/music/fluidsynth.cpp @@ -105,7 +105,7 @@ std::optional MusicDriver_FluidSynth::Start(const StringList & } if (sfont_id == FLUID_FAILED) return "Could not open any sound font"; } else { - std::string name{sfont_name}; + std::string name{sfont_name.value()}; sfont_id = fluid_synth_sfload(_midi.synth, name.c_str(), 1); if (sfont_id == FLUID_FAILED) return "Could not open sound font"; }