From 5b7c55cceeeceb035643b835dc13d16f494e7c52 Mon Sep 17 00:00:00 2001 From: jjceresa Date: Wed, 23 Oct 2019 19:33:14 +0200 Subject: [PATCH] move macro fluid_profile_ref_var() --- src/synth/fluid_synth.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index 043b282e..7934875e 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -3826,14 +3826,14 @@ fluid_synth_write_float_LOCAL(fluid_synth_t *synth, int len, double time = fluid_utime(); float cpu_load; + fluid_profile_ref_var(prof_ref); + fluid_return_val_if_fail(synth != NULL, FLUID_FAILED); fluid_return_val_if_fail(lout != NULL, FLUID_FAILED); fluid_return_val_if_fail(rout != NULL, FLUID_FAILED); fluid_return_val_if_fail(len >= 0, FLUID_FAILED); fluid_return_val_if_fail(len != 0, FLUID_OK); // to avoid raising FE_DIVBYZERO below - fluid_profile_ref_var(prof_ref); - fluid_rvoice_mixer_set_mix_fx(synth->eventhandler->mixer, 1); fluid_rvoice_mixer_get_bufs(synth->eventhandler->mixer, &left_in, &right_in); @@ -3984,14 +3984,14 @@ fluid_synth_write_s16(fluid_synth_t *synth, int len, double time = fluid_utime(); float cpu_load; + fluid_profile_ref_var(prof_ref); + fluid_return_val_if_fail(synth != NULL, FLUID_FAILED); fluid_return_val_if_fail(lout != NULL, FLUID_FAILED); fluid_return_val_if_fail(rout != NULL, FLUID_FAILED); fluid_return_val_if_fail(len >= 0, FLUID_FAILED); fluid_return_val_if_fail(len != 0, FLUID_OK); // to avoid raising FE_DIVBYZERO below - fluid_profile_ref_var(prof_ref); - fluid_rvoice_mixer_set_mix_fx(synth->eventhandler->mixer, 1); fluid_rvoice_mixer_get_bufs(synth->eventhandler->mixer, &left_in, &right_in);