MIDI: Add SF3 extension to FluidSynth loader
parent
4cf76dd7e3
commit
e8e2fc3164
|
@ -207,7 +207,7 @@ bool SFPlayer::startup()
|
||||||
size_t dot = sSoundFontName.find_last_of( '.' );
|
size_t dot = sSoundFontName.find_last_of( '.' );
|
||||||
if ( dot != std::string::npos )
|
if ( dot != std::string::npos )
|
||||||
ext.assign( sSoundFontName.begin() + dot + 1, sSoundFontName.end() );
|
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) )
|
if ( FLUID_FAILED == fluid_synth_sfload( _synth, sSoundFontName.c_str(), 1) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue