summaryrefslogtreecommitdiffstats
path: root/src/engine/events/Note.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-03 20:39:18 +0000
committerDavid Robillard <d@drobilla.net>2010-02-03 20:39:18 +0000
commitaef3c9348218029a077f40081fd078a9e2ee85ca (patch)
treeb77d6ef50f66004129a03cb0751b653336c50f14 /src/engine/events/Note.cpp
parent3e495d47f06cca50521076e8f77a966dfec521ab (diff)
downloadingen-aef3c9348218029a077f40081fd078a9e2ee85ca.tar.gz
ingen-aef3c9348218029a077f40081fd078a9e2ee85ca.tar.bz2
ingen-aef3c9348218029a077f40081fd078a9e2ee85ca.zip
Responder => Request, and handle EventSource unblocking from Request (simplify Event interfaces).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2417 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events/Note.cpp')
-rw-r--r--src/engine/events/Note.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/events/Note.cpp b/src/engine/events/Note.cpp
index e5a2370a..2fe9c868 100644
--- a/src/engine/events/Note.cpp
+++ b/src/engine/events/Note.cpp
@@ -24,7 +24,7 @@
#include "Note.hpp"
#include "PluginImpl.hpp"
#include "ProcessContext.hpp"
-#include "Responder.hpp"
+#include "Request.hpp"
using namespace Raul;
@@ -39,8 +39,8 @@ namespace Events {
*
* Used to be triggered by MIDI. Not used anymore.
*/
-Note::Note(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, NodeImpl* node, bool on, uint8_t note_num, uint8_t velocity)
-: Event(engine, responder, timestamp),
+Note::Note(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, NodeImpl* node, bool on, uint8_t note_num, uint8_t velocity)
+: Event(engine, request, timestamp),
_node(node),
_on(on),
_note_num(note_num),
@@ -53,8 +53,8 @@ Note::Note(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp
*
* Triggered by OSC.
*/
-Note::Note(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const Path& node_path, bool on, uint8_t note_num, uint8_t velocity)
-: Event(engine, responder, timestamp),
+Note::Note(Engine& engine, SharedPtr<Request> request, SampleCount timestamp, const Path& node_path, bool on, uint8_t note_num, uint8_t velocity)
+: Event(engine, request, timestamp),
_node(NULL),
_node_path(node_path),
_on(on),
@@ -95,11 +95,11 @@ Note::execute(ProcessContext& context)
void
Note::post_process()
{
- if (_responder) {
+ if (_request) {
if (_node)
- _responder->respond_ok();
+ _request->respond_ok();
else
- _responder->respond_error("Did not find node for note on event");
+ _request->respond_error("Did not find node for note on event");
}
}