summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/server/PortImpl.cpp3
-rw-r--r--src/server/PortImpl.hpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 1db98840..b7331aff 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -229,6 +229,7 @@ PortImpl::set_control_value(const RunContext& context,
Sample value)
{
for (uint32_t v = 0; v < _poly; ++v) {
+ update_set_state(context, v);
set_voice_value(context, v, time, value);
}
}
@@ -284,7 +285,7 @@ PortImpl::set_voice_value(const RunContext& context,
}
void
-PortImpl::update_set_state(RunContext& context, uint32_t v)
+PortImpl::update_set_state(const RunContext& context, uint32_t v)
{
Voice& voice = _voices->at(v);
SetState& state = voice.set_state;
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index 27b3db2f..b07a4086 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -143,7 +143,7 @@ public:
return _prepared_voices->at(voice).buffer;
}
- void update_set_state(RunContext& context, uint32_t voice);
+ void update_set_state(const RunContext& context, uint32_t voice);
void set_voice_value(const RunContext& context,
uint32_t voice,