clap

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

commit fe1d196187c7767dd3690905d66d113977074a3b
parent 2f8db67c8f6614410c7ec0d4ccdb505ec6d62651
Author: Robbert van der Helm <mail@robbertvanderhelm.nl>
Date:   Thu,  7 Jul 2022 12:30:37 +0200

Mention case where host does not set state context

This should simply fall back to the project context.

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

diff --git a/include/clap/ext/draft/state-context.h b/include/clap/ext/draft/state-context.h @@ -50,9 +50,9 @@ /// /// The host is responsible to declare the context the state operation in which it is happening. /// -/// @note if an unknown context index is provided, it should be handled as -/// `CLAP_STATE_CONTEXT_PROJECT`. -/// +/// @note If an unknown context type is provided or if the host does not call +/// clap_plugin_state_context->set() at all, then the state context type should +/// be treated as `CLAP_STATE_CONTEXT_PROJECT`. #ifdef __cplusplus extern "C" {