zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 02726532e499ad517e1b109a55e19da5f2f69db7
parent c64ebb2e818cf52402591b86e9d2e4d813bbbe80
Author: Johannes Lorenz <j.git@lorenz-ho.me>
Date:   Sun, 13 Dec 2020 21:18:20 +0100

FilterParams: Fix timestamps updating on request

Diffstat:
Msrc/Params/FilterParams.cpp | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Params/FilterParams.cpp b/src/Params/FilterParams.cpp @@ -59,8 +59,8 @@ static const rtosc::Ports subports = { #define rObject FilterParams #undef rChangeCb -#define rChangeCb obj->changed = true; if ( obj->time) { \ - obj->last_update_timestamp = obj->time->time(); } +#define rChangeCb do { obj->changed = true; if ( obj->time) { \ + obj->last_update_timestamp = obj->time->time(); } } while(false) const rtosc::Ports FilterParams::ports = { rSelf(FilterParams), rPaste, @@ -144,8 +144,8 @@ const rtosc::Ports FilterParams::ports = { rEnabledByCondition(is_formant_filter), &subports, [](const char *msg, RtData &d) { - const char *mm = msg; \ - while(*mm && !isdigit(*mm)) ++mm; \ + const char *mm = msg; + while(*mm && !isdigit(*mm)) ++mm; unsigned idx = atoi(mm); SNIP;