clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 5e25da6c73d4a7c4bd70431b5ef73c73b6c61918
parent fd83c02be8d9e05f40a8e62eaaf882342d529936
Author: Paul Walker <paul@pwjw.com>
Date:   Wed, 17 Jan 2024 12:41:06 -0500

Add CLAP_CONSTEXPR to voice-info and preset-load id declarations

To be consistent with all the other extensions

Diffstat:
MChangeLog.md | 5+++++
Minclude/clap/ext/preset-load.h | 4++--
Minclude/clap/ext/voice-info.h | 2+-
3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog.md b/ChangeLog.md @@ -66,6 +66,11 @@ Note: we kept the last draft factory ID in order to not break plugins already us * `clap.h` no longer includes headers from `ext/draft` or `factory/draft`. Draft extension and factory headers must now be explicitly included, either individually or via the `draft.h` header. +## Other changes + +* [voice-info.h](include/clap/ext/voice-info.h): Make the voice info id `CLAP_CONSTEXPR` like all other ids +* [preset-load.h](include/clap/ext/preset-load.h): Make the preset load id and compat id `CLAP_CONSTEXPR` like all other ids + # Changes in 1.1.10 * [params.h](include/clap/ext/params.h): add `CLAP_PARAM_IS_ENUM` flag. diff --git a/include/clap/ext/preset-load.h b/include/clap/ext/preset-load.h @@ -2,11 +2,11 @@ #include "../plugin.h" -static const char CLAP_EXT_PRESET_LOAD[] = "clap.preset-load/2"; +static CLAP_CONSTEXPR const char CLAP_EXT_PRESET_LOAD[] = "clap.preset-load/2"; // The latest draft is 100% compatible. // This compat ID may be removed in 2026. -static const char CLAP_EXT_PRESET_LOAD_COMPAT[] = "clap.preset-load.draft/2"; +static CLAP_CONSTEXPR const char CLAP_EXT_PRESET_LOAD_COMPAT[] = "clap.preset-load.draft/2"; #ifdef __cplusplus extern "C" { diff --git a/include/clap/ext/voice-info.h b/include/clap/ext/voice-info.h @@ -9,7 +9,7 @@ // - make the host's voice pool coherent with what the plugin has // - turn the host's voice management to mono when the plugin is mono -static const char CLAP_EXT_VOICE_INFO[] = "clap.voice-info"; +static CLAP_CONSTEXPR const char CLAP_EXT_VOICE_INFO[] = "clap.voice-info"; #ifdef __cplusplus extern "C" {