clap

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

commit d06b891b3ecf3f117b4ca30b0afce3481067659d
parent eb9548f7809807a7f7c7faa1bb08276fe162b219
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 15 Jul 2022 08:29:24 +0200

Use simpler requirement explanation

Diffstat:
Minclude/clap/ext/draft/state-context.h | 14+++-----------
1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/include/clap/ext/draft/state-context.h b/include/clap/ext/draft/state-context.h @@ -12,17 +12,9 @@ /// the state and initialize certain things differently. /// /// Save and Load operations may have a different context. -/// -/// Here is a conceptual implementation: -/// state clap_plugin_state_context.save(ctx) { -/// state = clap_plugin_state.save(); -/// return reduce(state, ctx); -/// } -/// -/// bool clap_plugin_state_context.load(state, ctx) { -/// state = reduce(state, ctx); -/// return clap_plugin_state.load(state); -/// } +/// Both operations shall be equivalent: +/// 1. clap_plugin_state_context.load(clap_plugin_state.save(), CLAP_STATE_CONTEXT_FOR_PRESET) +/// 2. clap_plugin_state.load(clap_plugin_state_context.save(CLAP_STATE_CONTEXT_FOR_PRESET)) #ifdef __cplusplus extern "C" {