diff options
Diffstat (limited to 'libs/ardour/ardour/destructive_filesource.h')
-rw-r--r-- | libs/ardour/ardour/destructive_filesource.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libs/ardour/ardour/destructive_filesource.h b/libs/ardour/ardour/destructive_filesource.h index 7f816a9e6b..0663d7f034 100644 --- a/libs/ardour/ardour/destructive_filesource.h +++ b/libs/ardour/ardour/destructive_filesource.h @@ -43,8 +43,18 @@ class DestructiveFileSource : public FileSource { jack_nframes_t write (Sample *src, jack_nframes_t cnt); private: - bool _capture_start; - bool _capture_end; + static jack_nframes_t xfade_frames; + static gain_t* out_coefficient; + static gain_t* in_coefficient; + static void setup_standard_crossfades (jack_nframes_t sample_rate); + + bool _capture_start; + bool _capture_end; + jack_nframes_t file_pos; + Sample* xfade_buf; + + jack_nframes_t crossfade (Sample* data, jack_nframes_t cnt, int dir); + }; } |