triggerbox: slight rationalization of member order in AudioTrigger

This commit is contained in:
Paul Davis 2021-12-18 17:34:06 -07:00
parent 30123a2106
commit d4145f0cb1
2 changed files with 15 additions and 8 deletions

View file

@ -330,14 +330,20 @@ class LIBARDOUR_API AudioTrigger : public Trigger {
};
Data data;
samplecnt_t read_index;
samplecnt_t process_index;
RubberBand::RubberBandStretcher* _stretcher;
samplepos_t _start_offset;
samplepos_t _legato_offset;
/* computed after data is reset */
samplecnt_t usable_length;
samplepos_t last_sample;
/* computed during run */
samplecnt_t read_index;
samplecnt_t process_index;
samplepos_t _legato_offset;
samplecnt_t retrieved;
RubberBand::RubberBandStretcher* _stretcher;
samplecnt_t got_stretcher_padding;
samplecnt_t to_pad;
samplecnt_t to_drop;

View file

@ -556,13 +556,14 @@ Trigger::maybe_compute_next_transition (samplepos_t start_sample, Temporal::Beat
AudioTrigger::AudioTrigger (uint64_t n, TriggerBox& b)
: Trigger (n, b)
, read_index (0)
, process_index (0)
, _stretcher (0)
, _start_offset (0)
, _legato_offset (0)
, usable_length (0)
, last_sample (0)
, _stretcher (0)
, read_index (0)
, process_index (0)
, _legato_offset (0)
, retrieved (0)
, got_stretcher_padding (false)
, to_pad (0)
, to_drop (0)