another return val fix

This commit is contained in:
derselbst 2017-09-22 15:43:41 +02:00
parent 7bef6f8787
commit 75e5284f72
2 changed files with 3 additions and 3 deletions

View file

@ -789,7 +789,7 @@ int main(int argc, char** argv)
if (interactive) {
fluid_player_stop(player);
}
if (adriver != NULL || fluid_settings_str_equal(settings, "player.timing-source", "sample") != FLUID_OK) {
if (adriver != NULL || !fluid_settings_str_equal(settings, "player.timing-source", "sample")) {
/* if no audio driver and sample timers are used, nothing makes the player advance */
fluid_player_join(player);
}

View file

@ -561,11 +561,11 @@ new_fluid_synth(fluid_settings_t *settings)
if (fluid_synth_initialized == 0)
{
char buf[64];
if (fluid_settings_str_equal (settings, "synth.volenv", "compliant") == FLUID_OK)
if (fluid_settings_str_equal (settings, "synth.volenv", "compliant"))
{
fluid_conversion_set_atten_power(FLUID_ATTEN_POWER_DEFAULT_COMPLIANT);
}
else if (fluid_settings_str_equal (settings, "synth.volenv", "emu") == FLUID_OK)
else if (fluid_settings_str_equal (settings, "synth.volenv", "emu"))
{
fluid_conversion_set_atten_power(FLUID_ATTEN_POWER_DEFAULT_EMU);
}