summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-20 02:10:32 +0100
committerDavid Robillard <d@drobilla.net>2017-03-20 03:19:33 +0100
commitbc0f5b77bc52054216790d48a7d09dc36c51b4f4 (patch)
tree5deeb145ac4c9fea1723d948c2c9d71788ee8302 /src
parenta312f5b5343112bb5b1a2ee10027ffc7a2dc6e2b (diff)
downloadingen-bc0f5b77bc52054216790d48a7d09dc36c51b4f4.tar.gz
ingen-bc0f5b77bc52054216790d48a7d09dc36c51b4f4.tar.bz2
ingen-bc0f5b77bc52054216790d48a7d09dc36c51b4f4.zip
Fix zipper noise when dragging CV port values
Diffstat (limited to 'src')
-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,