summaryrefslogtreecommitdiffstats
path: root/src/server/Notification.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-15 07:17:10 +0000
committerDavid Robillard <d@drobilla.net>2011-09-15 07:17:10 +0000
commitc7f671ff5bf9cf2559697bbc90cf3cee97cc7975 (patch)
treec9448a87cce9bfc957d32bc3b1b404cb7f0c6984 /src/server/Notification.hpp
parentba99f4ca92ea2e6cf8de51341489b0689223e1fc (diff)
downloadingen-c7f671ff5bf9cf2559697bbc90cf3cee97cc7975.tar.gz
ingen-c7f671ff5bf9cf2559697bbc90cf3cee97cc7975.tar.bz2
ingen-c7f671ff5bf9cf2559697bbc90cf3cee97cc7975.zip
Fix control bindings (MIDI learn).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3464 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Notification.hpp')
-rw-r--r--src/server/Notification.hpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/server/Notification.hpp b/src/server/Notification.hpp
index f6824318..8fea775e 100644
--- a/src/server/Notification.hpp
+++ b/src/server/Notification.hpp
@@ -38,20 +38,24 @@ struct Notification
PORT_BINDING
};
- Notification(
+ static inline Notification make(
Type type = NIL,
FrameTime time = 0,
PortImpl* port = 0,
const Raul::Atom& value = Raul::Atom(),
- const ControlBindings::Type btype = ControlBindings::NULL_CONTROL);
+ const ControlBindings::Type btype = ControlBindings::NULL_CONTROL)
+ {
+ const Notification note = { port, type, btype, value };
+ return note;
+ }
- void post_process(Engine& engine);
+ static void post_process(Notification& note,
+ Engine& engine);
- Type type;
- const ControlBindings::Type binding_type;
- FrameTime time;
- PortImpl* port;
- const Raul::Atom value;
+ PortImpl* port;
+ Type type;
+ ControlBindings::Type binding_type;
+ Raul::Atom value;
};
} // namespace Server