From 28368793415ba934132994d8c10a5e149c1a8d9d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 23 Apr 2009 17:48:37 +0000 Subject: remove offset from process callback tree. some breakage may have occured. yes, really. git-svn-id: svn://localhost/ardour2/branches/3.0@4999 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/port.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'libs/ardour/ardour/port.h') diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h index cf54c5065b..0c77eb15dd 100644 --- a/libs/ardour/ardour/port.h +++ b/libs/ardour/ardour/port.h @@ -44,6 +44,18 @@ public: virtual ~Port (); + static nframes_t port_offset() { return _port_offset; } + + static void set_port_offset (nframes_t off) { + _port_offset = off; + } + static void increment_port_offset (nframes_t n) { + _port_offset += n; + } + static void set_buffer_size (nframes_t sz) { + _buffer_size = sz; + } + /** @return Port short name */ std::string name () const { return _name; @@ -91,10 +103,11 @@ public: virtual void reset (); virtual DataType type () const = 0; - virtual void cycle_start (nframes_t, nframes_t) = 0; - virtual void cycle_end (nframes_t, nframes_t) = 0; - virtual Buffer& get_buffer (nframes_t, nframes_t) = 0; - virtual void flush_buffers (nframes_t, nframes_t) {} + virtual void cycle_start (nframes_t) = 0; + virtual void cycle_end (nframes_t) = 0; + virtual void cycle_split () = 0; + virtual Buffer& get_buffer (nframes_t nframes, nframes_t offset = 0) = 0; + virtual void flush_buffers (nframes_t, nframes_t offset = 0) {} static void set_engine (AudioEngine *); @@ -106,6 +119,9 @@ protected: jack_port_t* _jack_port; ///< JACK port + static nframes_t _port_offset; + static nframes_t _buffer_size; + static AudioEngine* _engine; ///< the AudioEngine private: -- cgit v1.2.3