clap

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

commit cca2403ab0fd1a36e2d3c4fd64e1c7b3dbbcb01c
parent 965a5cbb871f56b56684e9f476d94e0a4f0ee3a3
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Wed, 25 May 2022 15:01:34 +0200

Actually delete event-filter.h

Diffstat:
Minclude/clap/clap.h | 1-
Dinclude/clap/ext/draft/event-filter.h | 41-----------------------------------------
2 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -60,7 +60,6 @@ #include "ext/draft/cv.h" #include "ext/draft/ambisonic.h" #include "ext/draft/voice-info.h" -#include "ext/draft/event-filter.h" #include "converters/vst2-converter.h" #include "converters/vst3-converter.h" diff --git a/include/clap/ext/draft/event-filter.h b/include/clap/ext/draft/event-filter.h @@ -1,41 +0,0 @@ -#pragma once - -#include "../../plugin.h" - -static CLAP_CONSTEXPR const char CLAP_EXT_EVENT_FILTER[] = "clap.event-filter/draft"; - -#ifdef __cplusplus -extern "C" { -#endif - -// This extension lets the host know which event types the plugin is interested -// in. The purpose is to reduce the number of events in the stream and not to -// infer plugin's capabilities from it. -// -// This extension is currently in draft because we are not sure which aproach is best: whitelist vs -// blacklist and how much impact it has over the number of events. When a plugin supports polyphonic -// modulations, then the event queue can grow massively and this extension would then become -// irrelevant. -// -// The host will cache the set of accepted events before activating the plugin. -// The set of accepted events can't change while the plugin is active. -// -// If this extension is not provided by the plugin, then all events are accepted. -// -// If CLAP_EVENT_TRANSPORT is not accepted, then clap_process.transport may be null. -typedef struct clap_plugin_event_filter { - // Returns true if the plugin is interested in the given event type. - // [main-thread] - bool (*accepts)(const clap_plugin_t *plugin, uint16_t space_id, uint16_t event_type); -} clap_plugin_event_filter_t; - -typedef struct clap_host_event_filter { - // Informs the host that the set of accepted event type changed. - // This requires the plugin to be deactivated. - // [main-thread] - void (*changed)(const clap_host_t *host); -} clap_host_event_filter_t; - -#ifdef __cplusplus -} -#endif