summaryrefslogtreecommitdiffstats
path: root/src/server/ControlBindings.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:27:09 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commitffe238b426ab7ad7b3d6f8efd49cf4c7861fbf6f (patch)
treef3e45d28bc3ee42ec1426045278fbf3dfe7d296a /src/server/ControlBindings.hpp
parent951fa5cfd11f702340a98a7fbef7d806e454f866 (diff)
downloadingen-ffe238b426ab7ad7b3d6f8efd49cf4c7861fbf6f.tar.gz
ingen-ffe238b426ab7ad7b3d6f8efd49cf4c7861fbf6f.tar.bz2
ingen-ffe238b426ab7ad7b3d6f8efd49cf4c7861fbf6f.zip
Cleanup: Make methods static where possible
Diffstat (limited to 'src/server/ControlBindings.hpp')
-rw-r--r--src/server/ControlBindings.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/server/ControlBindings.hpp b/src/server/ControlBindings.hpp
index 3a39c664..bb113666 100644
--- a/src/server/ControlBindings.hpp
+++ b/src/server/ControlBindings.hpp
@@ -122,7 +122,8 @@ private:
boost::intrusive::multiset<Binding,
boost::intrusive::compare<BindingLess>>;
- Key midi_event_key(uint16_t size, const uint8_t* buf, uint16_t& value);
+ static Key
+ midi_event_key(uint16_t size, const uint8_t* buf, uint16_t& value);
void set_port_value(RunContext& context,
PortImpl* port,
@@ -131,15 +132,15 @@ private:
bool finish_learn(RunContext& context, Key key);
- float control_to_port_value(RunContext& context,
+ static float control_to_port_value(RunContext& context,
const PortImpl* port,
Type type,
- int16_t value) const;
+ int16_t value);
- int16_t port_value_to_control(RunContext& context,
- PortImpl* port,
- Type type,
- const Atom& value_atom) const;
+ static int16_t port_value_to_control(RunContext& context,
+ PortImpl* port,
+ Type type,
+ const Atom& value_atom);
Engine& _engine;
std::atomic<Binding*> _learn_binding;