summaryrefslogtreecommitdiffstats
path: root/src/server/ControlBindings.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-23 19:55:13 +0000
committerDavid Robillard <d@drobilla.net>2013-02-23 19:55:13 +0000
commit6b6cb56b2ceab509569bfca247f108f2be5e25c0 (patch)
tree5a46eee0c3f518fa7bb20e6a8784e5bd3ba04598 /src/server/ControlBindings.hpp
parent5a6aafff8dda9dddce479a2ad86edb933c9688c3 (diff)
downloadingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.gz
ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.bz2
ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.zip
Move Atom implementation out of Raul so it can depend on LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5076 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/ControlBindings.hpp')
-rw-r--r--src/server/ControlBindings.hpp30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/server/ControlBindings.hpp b/src/server/ControlBindings.hpp
index 26e9dd93..57a361c2 100644
--- a/src/server/ControlBindings.hpp
+++ b/src/server/ControlBindings.hpp
@@ -20,9 +20,9 @@
#include <map>
#include <stdint.h>
+#include "ingen/Atom.hpp"
#include "ingen/types.hpp"
#include "lv2/lv2plug.in/ns/ext/atom/forge.h"
-#include "raul/Atom.hpp"
#include "raul/Path.hpp"
#include "BufferFactory.hpp"
@@ -62,18 +62,18 @@ public:
~ControlBindings();
Key port_binding(PortImpl* port) const;
- Key binding_key(const Raul::Atom& binding) const;
+ Key binding_key(const Atom& binding) const;
void learn(PortImpl* port);
void port_binding_changed(ProcessContext& context,
PortImpl* port,
- const Raul::Atom& binding);
+ const Atom& binding);
void port_value_changed(ProcessContext& context,
PortImpl* port,
Key key,
- const Raul::Atom& value);
+ const Atom& value);
void pre_process(ProcessContext& context, Buffer* control_in);
void post_process(ProcessContext& context, Buffer* control_out);
@@ -93,18 +93,22 @@ public:
private:
Key midi_event_key(uint16_t size, const uint8_t* buf, uint16_t& value);
- void set_port_value(ProcessContext& context, PortImpl* port, Type type, int16_t value);
+ void set_port_value(ProcessContext& context,
+ PortImpl* port,
+ Type type,
+ int16_t value);
+
bool bind(ProcessContext& context, Key key);
- Raul::Atom control_to_port_value(ProcessContext& context,
- const PortImpl* port,
- Type type,
- int16_t value) const;
+ Atom control_to_port_value(ProcessContext& context,
+ const PortImpl* port,
+ Type type,
+ int16_t value) const;
- int16_t port_value_to_control(ProcessContext& context,
- PortImpl* port,
- Type type,
- const Raul::Atom& value) const;
+ int16_t port_value_to_control(ProcessContext& context,
+ PortImpl* port,
+ Type type,
+ const Atom& value) const;
Engine& _engine;
PortImpl* _learn_port;