From 0af950a1e29fe04d5c9eaf99063b414a2c23a669 Mon Sep 17 00:00:00 2001 From: derselbst Date: Wed, 11 Apr 2018 09:56:42 +0200 Subject: [PATCH] avoid swapping rvoices when can_access_rvoice is false --- src/synth/fluid_voice.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/synth/fluid_voice.c b/src/synth/fluid_voice.c index 6f356760..52a86a1a 100644 --- a/src/synth/fluid_voice.c +++ b/src/synth/fluid_voice.c @@ -357,11 +357,8 @@ fluid_voice_set_output_rate(fluid_voice_t* voice, fluid_real_t value) fluid_voice_off(voice); voice->output_rate = value; - UPDATE_RVOICE_R1(fluid_rvoice_set_output_rate, value); - /* Update the other rvoice as well */ - fluid_voice_swap_rvoice(voice); - UPDATE_RVOICE_R1(fluid_rvoice_set_output_rate, value); - fluid_voice_swap_rvoice(voice); + UPDATE_RVOICE_GENERIC_R1(fluid_rvoice_set_output_rate, voice->rvoice, value); + UPDATE_RVOICE_GENERIC_R1(fluid_rvoice_set_output_rate, voice->overflow_rvoice, value); }