mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-03 07:51:45 +00:00
another return val fix
This commit is contained in:
parent
7bef6f8787
commit
75e5284f72
2 changed files with 3 additions and 3 deletions
|
@ -789,7 +789,7 @@ int main(int argc, char** argv)
|
||||||
if (interactive) {
|
if (interactive) {
|
||||||
fluid_player_stop(player);
|
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 */
|
/* if no audio driver and sample timers are used, nothing makes the player advance */
|
||||||
fluid_player_join(player);
|
fluid_player_join(player);
|
||||||
}
|
}
|
||||||
|
|
|
@ -561,11 +561,11 @@ new_fluid_synth(fluid_settings_t *settings)
|
||||||
if (fluid_synth_initialized == 0)
|
if (fluid_synth_initialized == 0)
|
||||||
{
|
{
|
||||||
char buf[64];
|
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);
|
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);
|
fluid_conversion_set_atten_power(FLUID_ATTEN_POWER_DEFAULT_EMU);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue