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; };