Prevent MIDI player from playing immediately after creation

This commit is contained in:
derselbst 2021-02-07 11:21:18 +01:00 committed by Tom M
parent 2172e1b009
commit 66407e2584

View file

@ -2065,7 +2065,7 @@ fluid_player_callback(void *data, unsigned int msec)
loadnextfile = player->currentfile == NULL ? 1 : 0;
if(fluid_player_get_status(player) == FLUID_PLAYER_DONE)
if(fluid_player_get_status(player) != FLUID_PLAYER_PLAYING)
{
fluid_synth_all_notes_off(synth, -1);
return 1;