clap

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

commit 546ed7dfb58d09a40df42dd9d18044d40b40c601
parent eb7902a8c4f1ce235f35c79f5373b9a0b57c31d2
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Thu, 18 Apr 2024 14:54:26 +0200

clarify undo

Diffstat:
Minclude/clap/ext/draft/undo.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/clap/ext/draft/undo.h b/include/clap/ext/draft/undo.h @@ -77,6 +77,10 @@ typedef struct clap_host_undo { void(CLAP_ABI *cancel_change)(const clap_host_t *host); // Completes an undoable change. + // At the moment of this function call, plugin_state->save() would include the current change. + // + // TODO: discuss implicit changes like parameter changes that should not need to be reported to the host. + // // name: mandatory null terminated string describing the change, this is displayed to the user // detlas: optional, they are binary blobs used to perform the undo and redo. When not available // the host will save of the plugin and use state->load() instead.