From e8e2fc3164ff6b139e9c05de209a52a862339142 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 3 May 2021 19:18:37 -0700 Subject: [PATCH] MIDI: Add SF3 extension to FluidSynth loader --- Plugins/MIDI/MIDI/SFPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/MIDI/MIDI/SFPlayer.cpp b/Plugins/MIDI/MIDI/SFPlayer.cpp index 2fabb9f23..890879cbe 100644 --- a/Plugins/MIDI/MIDI/SFPlayer.cpp +++ b/Plugins/MIDI/MIDI/SFPlayer.cpp @@ -207,7 +207,7 @@ bool SFPlayer::startup() size_t dot = sSoundFontName.find_last_of( '.' ); if ( dot != std::string::npos ) ext.assign( sSoundFontName.begin() + dot + 1, sSoundFontName.end() ); - if ( !strcasecmp( ext.c_str(), "sf2" ) ) + if ( !strcasecmp( ext.c_str(), "sf2" ) || !strcasecmp( ext.c_str(), "sf3" ) ) { if ( FLUID_FAILED == fluid_synth_sfload( _synth, sSoundFontName.c_str(), 1) ) {