From 2c46e6a464d2ac5be8e16a62fba6f00924090ea8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 May 2008 05:16:33 +0000 Subject: 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 --- src/libs/engine/EventBuffer.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libs/engine/EventBuffer.hpp') 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 - - }; -- cgit v1.2.1