globally change all use of "frame" to refer to audio into "sample".
[ardour.git] / libs / ardour / ardour / processor.h
index 095ab7fadf8c7321fa9276c6e38a1ad17f977a56..fb77943a344de09c08b63d4dbd099c23e88d5b2b 100644 (file)
@@ -68,10 +68,10 @@ class LIBARDOUR_API Processor : public SessionObject, public Automatable, public
        bool get_next_ab_is_active () const { return _next_ab_is_active; }
        void set_next_ab_is_active (bool yn) { _next_ab_is_active = yn; }
 
-       virtual framecnt_t signal_latency() const { return 0; }
+       virtual samplecnt_t signal_latency() const { return 0; }
 
-       virtual void set_input_latency (framecnt_t);
-       framecnt_t input_latency () const { return _input_latency; }
+       virtual void set_input_latency (samplecnt_t);
+       samplecnt_t input_latency () const { return _input_latency; }
 
        virtual int set_block_size (pframes_t /*nframes*/) { return 0; }
        virtual bool requires_fixed_sized_buffers() const { return false; }
@@ -79,8 +79,8 @@ class LIBARDOUR_API Processor : public SessionObject, public Automatable, public
        /** @param result_required true if, on return from this method, @a bufs is required to contain valid data;
         *  if false, the method need not bother writing to @a bufs if it doesn't want to.
         */
-       virtual void run (BufferSet& /*bufs*/, framepos_t /*start_frame*/, framepos_t /*end_frame*/, double speed, pframes_t /*nframes*/, bool /*result_required*/) {}
-       virtual void silence (framecnt_t nframes, framepos_t start_frame) { automation_run (start_frame, nframes); }
+       virtual void run (BufferSet& /*bufs*/, samplepos_t /*start_sample*/, samplepos_t /*end_sample*/, double speed, pframes_t /*nframes*/, bool /*result_required*/) {}
+       virtual void silence (samplecnt_t nframes, samplepos_t start_sample) { automation_run (start_sample, nframes); }
 
        virtual void activate ()   { _pending_active = true; ActiveChanged(); }
        virtual void deactivate () { _pending_active = false; ActiveChanged(); }
@@ -152,7 +152,7 @@ protected:
        ProcessorWindowProxy *_window_proxy;
        PluginPinWindowProxy *_pinmgr_proxy;
        SessionObject* _owner;
-       framecnt_t _input_latency;
+       samplecnt_t _input_latency;
 };
 
 } // namespace ARDOUR