commit 604db1936832c74266de5a5747258d980568559b
parent 8d29623522546ed55ebc79279e785da1701dde7f
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Tue, 14 Sep 2021 15:30:39 +0200
Fix flags values
Diffstat:
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/examples/plugins/gui/parameter-proxy.cc b/examples/plugins/gui/parameter-proxy.cc
@@ -34,7 +34,9 @@ void ParameterProxy::setIsAdjusting(bool isAdjusting) {
if (isAdjusting == _isAdjusting)
return;
- clap::messages::AdjustRequest rq{_id, _value, isAdjusting ? CLAP_EVENT_PARAM_BEGIN_ADJUST : CLAP_EVENT_PARAM_END_ADJUST};
+ uint32_t flags = CLAP_EVENT_PARAM_SHOULD_RECORD;
+ flags |= isAdjusting ? CLAP_EVENT_PARAM_BEGIN_ADJUST : CLAP_EVENT_PARAM_END_ADJUST;
+ clap::messages::AdjustRequest rq{_id, _value, flags};
Application::instance().remoteChannel().sendRequestAsync(rq);
}
diff --git a/include/clap/events.h b/include/clap/events.h
@@ -75,13 +75,13 @@ typedef struct clap_event_note_expression {
enum {
// live user adjustment begun
- CLAP_EVENT_PARAM_BEGIN_ADJUST,
+ CLAP_EVENT_PARAM_BEGIN_ADJUST = 1 << 0,
// live user adjustment ended
- CLAP_EVENT_PARAM_END_ADJUST,
+ CLAP_EVENT_PARAM_END_ADJUST = 1 << 1,
// should record this parameter change and create an automation point?
- CLAP_EVENT_PARAM_SHOULD_RECORD,
+ CLAP_EVENT_PARAM_SHOULD_RECORD = 1 << 2,
};
typedef int32_t clap_event_param_flags;
diff --git a/include/clap/version.h b/include/clap/version.h
@@ -22,7 +22,7 @@ typedef struct clap_version {
}
#endif
-static CLAP_CONSTEXPR const clap_version CLAP_VERSION = {0, 11, 0};
+static CLAP_CONSTEXPR const clap_version CLAP_VERSION = {0, 12, 0};
static CLAP_CONSTEXPR inline bool clap_version_is_compatible(const clap_version &v) {
// For version 0, we require the same minor version because