Optimize plugin-processing for non-automated params
[ardour.git] / libs / ardour / ardour / disk_reader.h
index 9027bf3282fd02bd2f67dae064dbec37b930d5b8..47139efd5b69d696c5bcff5243500d1bf6649566 100644 (file)
@@ -93,6 +93,10 @@ public:
        void playlist_modified ();
        void reset_tracker ();
 
+       bool declick_in_progress () const {
+               return _declick_gain != 0; // declick-out
+       }
+
        static void set_midi_readahead_samples (samplecnt_t samples_ahead) { midi_readahead = samples_ahead; }
 
        static void set_no_disk_output (bool yn);
@@ -104,7 +108,7 @@ protected:
 
        struct ReaderChannelInfo : public DiskIOProcessor::ChannelInfo {
                ReaderChannelInfo (samplecnt_t buffer_size)
-                       : DiskIOProcessor::ChannelInfo::ChannelInfo (buffer_size)
+                       : DiskIOProcessor::ChannelInfo (buffer_size)
                {
                        resize (buffer_size);
                }
@@ -132,6 +136,8 @@ private:
        IOChange      input_change_pending;
        samplepos_t   file_sample[DataType::num_types];
 
+       gain_t        _declick_gain;
+
        int _do_refill_with_alloc (bool partial_fill);
 
        static samplecnt_t _chunk_samples;