mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-13 19:31:10 +00:00
fluid_synth_system_reset: avoid code duplication
reuse fluid_synth_all_sounds_off_LOCAL()
This commit is contained in:
parent
452d86cde9
commit
c7789c0e58
1 changed files with 1 additions and 6 deletions
|
@ -1742,12 +1742,7 @@ fluid_synth_system_reset_LOCAL(fluid_synth_t* synth)
|
|||
fluid_voice_t* voice;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < synth->polyphony; i++) {
|
||||
voice = synth->voice[i];
|
||||
|
||||
if (fluid_voice_is_playing(voice))
|
||||
fluid_voice_off(voice);
|
||||
}
|
||||
fluid_synth_all_sounds_off_LOCAL(synth, -1);
|
||||
|
||||
for (i = 0; i < synth->midi_channels; i++)
|
||||
fluid_channel_reset(synth->channel[i]);
|
||||
|
|
Loading…
Reference in a new issue