diff options
author | David Robillard <d@drobilla.net> | 2006-07-18 05:46:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-07-18 05:46:24 +0000 |
commit | 2dbd0cd81dff72aea42344188d20f7d7f6d20e1a (patch) | |
tree | a3af76b4164c75b19d3973c88b05591be9e9d67d /src/libs/engine/events/ActivateEvent.cpp | |
parent | 1d81360a04e0e5c0a57b8be1708e29a3f2bde848 (diff) | |
download | ingen-2dbd0cd81dff72aea42344188d20f7d7f6d20e1a.tar.gz ingen-2dbd0cd81dff72aea42344188d20f7d7f6d20e1a.tar.bz2 ingen-2dbd0cd81dff72aea42344188d20f7d7f6d20e1a.zip |
Removed globals (Om.h)
git-svn-id: http://svn.drobilla.net/lad/ingen@96 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/ActivateEvent.cpp')
-rw-r--r-- | src/libs/engine/events/ActivateEvent.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/libs/engine/events/ActivateEvent.cpp b/src/libs/engine/events/ActivateEvent.cpp index b558b83a..27875c59 100644 --- a/src/libs/engine/events/ActivateEvent.cpp +++ b/src/libs/engine/events/ActivateEvent.cpp @@ -16,13 +16,12 @@ #include "ActivateEvent.h" #include "Responder.h" -#include "Om.h" -#include "OmApp.h" +#include "Ingen.h" namespace Om { -ActivateEvent::ActivateEvent(CountedPtr<Responder> responder, samplecount timestamp) +ActivateEvent::ActivateEvent(CountedPtr<Responder> responder, SampleCount timestamp) : QueuedEvent(responder, timestamp) { } @@ -33,18 +32,14 @@ ActivateEvent::pre_process() { QueuedEvent::pre_process(); - if (om != NULL) - om->activate(); + Ingen::instance().activate(); } void ActivateEvent::post_process() { - if (om != NULL) - _responder->respond_ok(); - else - _responder->respond_error("Not ready to activate yet."); + _responder->respond_ok(); } |