summaryrefslogtreecommitdiffstats
path: root/src/engine/EventBuffer.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-14 20:44:40 +0000
committerDavid Robillard <d@drobilla.net>2009-11-14 20:44:40 +0000
commit6ae2018e81e7e81e4906e62dc6224ad34298d9c2 (patch)
tree11286438977c4f975b5148dc93b5f4dfafabdbdc /src/engine/EventBuffer.hpp
parentcfec427867f42d7aa7bea6dfbb0736b5ce99e9e2 (diff)
downloadingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.tar.gz
ingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.tar.bz2
ingen-6ae2018e81e7e81e4906e62dc6224ad34298d9c2.zip
Object extension.
Port resize extension. Sensible extension(s) implementation design for Ingen. Replace string port extension support in Ingen with Object port extension. Implement port resize extension in Ingen. Some test plugins for this stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2260 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/EventBuffer.hpp')
-rw-r--r--src/engine/EventBuffer.hpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/engine/EventBuffer.hpp b/src/engine/EventBuffer.hpp
index f89705b0..cafa71bd 100644
--- a/src/engine/EventBuffer.hpp
+++ b/src/engine/EventBuffer.hpp
@@ -34,17 +34,17 @@ public:
bool join(Buffer* buf);
void unjoin();
- void clear() { reset(_this_nframes); }
+ void clear() { _buf->reset(); }
void* raw_data() { return _buf; }
const void* raw_data() const { return _buf; }
void rewind() const { _buf->rewind(); }
- void prepare_read(FrameTime start, SampleCount nframes);
- void prepare_write(FrameTime start, SampleCount nframes);
+ void prepare_read(Context& context);
+ void prepare_write(Context& context);
- void copy(const Buffer* src, size_t start_sample, size_t end_sample);
+ void copy(Context& context, const Buffer* src);
bool merge(const EventBuffer& a, const EventBuffer& b);
bool increment() const { return _buf->increment(); }
@@ -52,14 +52,8 @@ public:
inline uint32_t latest_frames() const { return _buf->latest_frames(); }
inline uint32_t latest_subframes() const { return _buf->latest_subframes(); }
- inline uint32_t this_nframes() const { return _this_nframes; }
inline uint32_t event_count() const { return _buf->event_count(); }
- inline void reset(SampleCount nframes) {
- _this_nframes = nframes;
- _buf->reset();
- }
-
inline bool get_event(uint32_t* frames,
uint32_t* subframes,
uint16_t* type,
@@ -81,9 +75,8 @@ public:
}
private:
- LV2EventBuffer* _buf; ///< Contents (maybe belong to _joined_buf)
- LV2EventBuffer* _local_buf; ///< Local contents
- uint32_t _this_nframes; ///< Current cycle nframes
+ LV2EventBuffer* _buf; ///< Contents (maybe belong to _joined_buf)
+ LV2EventBuffer* _local_buf; ///< Local contents
};