diff options
author | David Robillard <d@drobilla.net> | 2008-05-23 05:16:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-23 05:16:33 +0000 |
commit | 2c46e6a464d2ac5be8e16a62fba6f00924090ea8 (patch) | |
tree | dd5471166f91ad922e7b8f987a648558a88c45fc /src/libs/engine/EventBuffer.hpp | |
parent | 0dbcca14bcbcb3aa7e7c0ae24934463a5973a651 (diff) | |
download | ingen-2c46e6a464d2ac5be8e16a62fba6f00924090ea8.tar.gz ingen-2c46e6a464d2ac5be8e16a62fba6f00924090ea8.tar.bz2 ingen-2c46e6a464d2ac5be8e16a62fba6f00924090ea8.zip |
Fix infinite loops (and jack death) on internal MIDI nodes (note, trigger, control).
git-svn-id: http://svn.drobilla.net/lad/ingen@1231 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/EventBuffer.hpp')
-rw-r--r-- | src/libs/engine/EventBuffer.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libs/engine/EventBuffer.hpp b/src/libs/engine/EventBuffer.hpp index abb51012..148b5420 100644 --- a/src/libs/engine/EventBuffer.hpp +++ b/src/libs/engine/EventBuffer.hpp @@ -57,6 +57,7 @@ public: inline void clear() { reset(_this_nframes); } inline void reset(SampleCount nframes) { //std::cerr << this << " reset" << std::endl; + _this_nframes = nframes; _latest_frames = 0; _latest_subframes = 0; _buf->event_count = 0; @@ -93,8 +94,6 @@ private: uint32_t _latest_frames; ///< Latest time of all events (frames) uint32_t _latest_subframes; ///< Latest time of all events (subframes) uint32_t _this_nframes; ///< Current cycle nframes - - }; |