summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-20 17:36:43 +0000
committerDavid Robillard <d@drobilla.net>2008-12-20 17:36:43 +0000
commitbdc0651e0b5407d88f821329c9275625956f96d2 (patch)
treeeae2448f75f48475359fd917eacf3017509b2359 /src
parent8c9d5839cf50cf101d6d1e17fa9e404d6de97113 (diff)
downloadingen-bdc0651e0b5407d88f821329c9275625956f96d2.tar.gz
ingen-bdc0651e0b5407d88f821329c9275625956f96d2.tar.bz2
ingen-bdc0651e0b5407d88f821329c9275625956f96d2.zip
Update lv2_contexts.h:
- Take a valid_inputs parameter as well - Return int, not bool - Change macros to static inline functions for type safety. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1874 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/engine/LV2Node.cpp4
-rw-r--r--src/engine/LV2Node.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp
index 80758553..a72ebc21 100644
--- a/src/engine/LV2Node.cpp
+++ b/src/engine/LV2Node.cpp
@@ -291,11 +291,11 @@ LV2Node::deactivate()
void
-LV2Node::message_process(MessageContext& context, uint32_t* output)
+LV2Node::message_process(MessageContext& context, uint32_t* inputs, uint32_t* outputs)
{
// FIXME: voice
if (_message_funcs)
- (*_message_funcs->message_run)((*_instances)[0]->lv2_handle, output);
+ (*_message_funcs->message_run)((*_instances)[0]->lv2_handle, inputs, outputs);
/* MESSAGE PROCESS */
}
diff --git a/src/engine/LV2Node.hpp b/src/engine/LV2Node.hpp
index 6757060b..7f703117 100644
--- a/src/engine/LV2Node.hpp
+++ b/src/engine/LV2Node.hpp
@@ -53,7 +53,7 @@ public:
void activate();
void deactivate();
- void message_process(MessageContext& context, uint32_t* output);
+ void message_process(MessageContext& context, uint32_t* inputs, uint32_t* outputs);
void process(ProcessContext& context);