fluid_synth_system_reset: avoid code duplication

reuse fluid_synth_all_sounds_off_LOCAL()
This commit is contained in:
derselbst 2017-10-20 20:38:37 +02:00
parent 452d86cde9
commit c7789c0e58

View file

@ -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]);