Only show user-presets in favorite sidebar
[ardour.git] / libs / ardour / ardour / capturing_processor.h
index 9a91e6d02fba0e8f7de67bde7b2e5bc2d6050801..12d999c0c3ec3b4843cf528a503885504b669bbd 100644 (file)
 #ifndef __ardour_capturing_processor_h__
 #define __ardour_capturing_processor_h__
 
+#include "ardour/fixed_delay.h"
 #include "ardour/processor.h"
+#include "ardour/types.h"
 
 namespace ARDOUR {
 
 class LIBARDOUR_API CapturingProcessor : public Processor
 {
-  public:
-       CapturingProcessor (Session & session);
+public:
+       CapturingProcessor (Session & session, samplecnt_t latency);
        ~CapturingProcessor();
 
-  public: // main interface
+public: // main interface
        BufferSet const & get_capture_buffers() const { return capture_buffers; }
 
-  public: // Processor overrides
+public: // Processor overrides
        bool display_to_user() const { return false; }
        int set_block_size (pframes_t nframes);
-       void run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes, bool result_required);
+       void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool result_required);
        bool configure_io (ChanCount in, ChanCount out);
        bool can_support_io_configuration (const ChanCount& in, ChanCount& out);
-       virtual XMLNode& state (bool);
 
-  private:
+protected:
+       XMLNode& state ();
 
+private:
        void realloc_buffers();
 
-       framecnt_t block_size;
+       samplecnt_t block_size;
        BufferSet capture_buffers;
+       FixedDelay _delaybuffers;
+       samplecnt_t _latency;
 };
 
 } // namespace ARDOUR