From 587a8408cf173c66dcc784c77a2944cb63a76f47 Mon Sep 17 00:00:00 2001 From: derselbst Date: Fri, 20 Oct 2017 12:25:45 +0200 Subject: [PATCH] Revert "remove redundant debug vars for fluid_voice_t" This reverts commit 69d41ae5ecf1ba83f078777df5f06476c61c8054. Fixing build if -Denable-profiling=1 --- src/synth/fluid_voice.c | 3 +++ src/synth/fluid_voice.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/synth/fluid_voice.c b/src/synth/fluid_voice.c index 67d73c5a..df74da1f 100644 --- a/src/synth/fluid_voice.c +++ b/src/synth/fluid_voice.c @@ -268,6 +268,7 @@ fluid_voice_init(fluid_voice_t* voice, fluid_sample_t* sample, voice->channel = channel; voice->mod_count = 0; voice->start_time = start_time; + voice->debug = 0; voice->has_noteoff = 0; UPDATE_RVOICE0(fluid_rvoice_reset); @@ -455,6 +456,8 @@ void fluid_voice_start(fluid_voice_t* voice) fluid_voice_calculate_runtime_synthesis_parameters(voice); + voice->ref = fluid_profile_ref(); + voice->status = FLUID_VOICE_ON; /* Increment voice count */ diff --git a/src/synth/fluid_voice.h b/src/synth/fluid_voice.h index e2ce1ffd..e4ebd0e0 100644 --- a/src/synth/fluid_voice.h +++ b/src/synth/fluid_voice.h @@ -104,6 +104,10 @@ struct _fluid_voice_t char can_access_rvoice; /* False if rvoice is being rendered in separate thread */ char can_access_overflow_rvoice; /* False if overflow_rvoice is being rendered in separate thread */ char has_noteoff; /* Flag set when noteoff has been sent */ + + /* for debugging */ + int debug; + double ref; };