summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FilePath.cpp2
-rw-r--r--src/server/Broadcaster.hpp4
-rw-r--r--src/server/BufferFactory.hpp2
-rw-r--r--src/server/ControlBindings.cpp4
-rw-r--r--src/server/ControlBindings.hpp15
5 files changed, 15 insertions, 12 deletions
diff --git a/src/FilePath.cpp b/src/FilePath.cpp
index c015d2ee..ad739e95 100644
--- a/src/FilePath.cpp
+++ b/src/FilePath.cpp
@@ -95,7 +95,7 @@ FilePath::operator+=(boost::basic_string_view<value_type> sv)
}
FilePath
-FilePath::root_name() const
+FilePath::root_name()
{
#ifdef USE_WINDOWS_FILE_PATHS
if (_str.length() >= 2 && _str[0] >= 'A' && _str[0] <= 'Z' &&
diff --git a/src/server/Broadcaster.hpp b/src/server/Broadcaster.hpp
index bf586c38..d8857356 100644
--- a/src/server/Broadcaster.hpp
+++ b/src/server/Broadcaster.hpp
@@ -91,7 +91,9 @@ public:
};
void send_plugins(const BlockFactory::Plugins& plugins);
- void send_plugins_to(Interface*, const BlockFactory::Plugins& plugins);
+
+ static void
+ send_plugins_to(Interface*, const BlockFactory::Plugins& plugins);
void message(const Message& msg) override {
std::lock_guard<std::mutex> lock(_clients_mutex);
diff --git a/src/server/BufferFactory.hpp b/src/server/BufferFactory.hpp
index eafec0b8..03a85d1c 100644
--- a/src/server/BufferFactory.hpp
+++ b/src/server/BufferFactory.hpp
@@ -94,7 +94,7 @@ private:
}
}
- void free_list(Buffer* head);
+ static void free_list(Buffer* head);
std::atomic<Buffer*> _free_audio;
std::atomic<Buffer*> _free_control;
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp
index ce08950e..41f00742 100644
--- a/src/server/ControlBindings.cpp
+++ b/src/server/ControlBindings.cpp
@@ -230,7 +230,7 @@ float
ControlBindings::control_to_port_value(RunContext& context,
const PortImpl* port,
Type type,
- int16_t value) const
+ int16_t value)
{
float normal = 0.0f;
switch (type) {
@@ -262,7 +262,7 @@ int16_t
ControlBindings::port_value_to_control(RunContext& context,
PortImpl* port,
Type type,
- const Atom& value_atom) const
+ const Atom& value_atom)
{
if (value_atom.type() != port->bufs().forge().Float) {
return 0;
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;