mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-17 13:19:09 +00:00
Prevent MIDI player from playing immediately after creation
This commit is contained in:
parent
2172e1b009
commit
66407e2584
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue