From 3c99490a60f25a97c7e3501fef351232f297ef01 Mon Sep 17 00:00:00 2001 From: derselbst Date: Wed, 20 Sep 2017 20:13:18 +0200 Subject: [PATCH] check for new return values of fluid_settings_*() --- src/synth/fluid_synth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index 9fad26e7..25d59790 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -562,17 +562,17 @@ new_fluid_synth(fluid_settings_t *settings) if (fluid_synth_initialized == 0) { char buf[64]; - if (fluid_settings_str_equal (settings, "synth.volenv", "compliant") == 1) + if (fluid_settings_str_equal (settings, "synth.volenv", "compliant") == FLUID_OK) { fluid_conversion_set_atten_power(FLUID_ATTEN_POWER_DEFAULT_COMPLIANT); } - else if (fluid_settings_str_equal (settings, "synth.volenv", "emu") == 1) + else if (fluid_settings_str_equal (settings, "synth.volenv", "emu") == FLUID_OK) { fluid_conversion_set_atten_power(FLUID_ATTEN_POWER_DEFAULT_EMU); } else { - if (fluid_settings_copystr(settings, "synth.volenv", buf, sizeof(buf)/sizeof(buf[0])) == 1) + if (fluid_settings_copystr(settings, "synth.volenv", buf, sizeof(buf)/sizeof(buf[0])) == FLUID_OK) { double atten = atof(buf); if(atten != 0.0)