diff options
Diffstat (limited to 'src/libs/engine/QueuedEvent.hpp')
-rw-r--r-- | src/libs/engine/QueuedEvent.hpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/libs/engine/QueuedEvent.hpp b/src/libs/engine/QueuedEvent.hpp index 69baefe4..e616d269 100644 --- a/src/libs/engine/QueuedEvent.hpp +++ b/src/libs/engine/QueuedEvent.hpp @@ -44,25 +44,9 @@ class QueuedEvent : public Event public: /** Process this event into a realtime-suitable event. */ - virtual void pre_process() { - assert(ThreadManager::current_thread_id() == THREAD_PRE_PROCESS); - assert(_pre_processed == false); - _pre_processed = true; - } - - virtual void execute(SampleCount nframes, FrameTime start, FrameTime end) { - assert(_pre_processed); - assert(_time <= end); - - // Didn't prepare in time. QueuedEvents aren't (necessarily) sample accurate - // so just run at the beginning of this cycle - if (_time <= start) - _time = start; - - Event::execute(nframes, start, end); - } + virtual void pre_process(); - virtual void post_process() {} + virtual void execute(ProcessContext& context); /** If this event blocks the prepare phase of other slow events */ bool is_blocking() { return _blocking; } |