clap

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

commit e03a29f5319ed16e5f7586b3052006627c036bb7
parent 0e85615ba1c40861f752b9f8cb29083adee5b780
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Wed,  4 Jan 2023 12:27:50 +0100

distinguish between device pages and preset pages

Diffstat:
MChangeLog.md | 1+
Minclude/clap/ext/draft/remote-controls.h | 6+++++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog.md b/ChangeLog.md @@ -8,6 +8,7 @@ * [context-menu.h](include/clap/ext/draft/context-menu.h): add "title" menu entry * [preset-load.h](include/clap/ext/draft/preset-load.h): load from URI instead of path, making the extension more powerful +* [remote-controls.h](include/clap/ext/draft/remote-controls.h): distinguish between device pages and preset pages ## Draft factories diff --git a/include/clap/ext/draft/remote-controls.h b/include/clap/ext/draft/remote-controls.h @@ -31,7 +31,7 @@ // Pressing that button once gets you to the first page of the section. // Press it again to cycle through the section's pages. -static CLAP_CONSTEXPR const char CLAP_EXT_REMOTE_CONTROLS[] = "clap.remote-controls.draft/1"; +static CLAP_CONSTEXPR const char CLAP_EXT_REMOTE_CONTROLS[] = "clap.remote-controls.draft/2"; #ifdef __cplusplus extern "C" { @@ -44,6 +44,10 @@ typedef struct clap_remote_controls_page { clap_id page_id; char page_name[CLAP_NAME_SIZE]; clap_id param_ids[CLAP_REMOTE_CONTROLS_COUNT]; + + // This is used to separate device pages versus preset pages. + // If true, then this page is specific to this preset. + bool is_for_preset; } clap_remote_controls_page_t; typedef struct clap_plugin_remote_controls {