commit 384eb6e16fc952f106fef10246d896fa2430002e
parent 45b52b15f7012c9fedd58942d5e75739480a6faa
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Wed, 1 Jun 2022 14:17:36 +0200
move that code out of the main repo
Diffstat:
3 files changed, 0 insertions(+), 160 deletions(-)
diff --git a/include/clap/converters/clap-converter.h b/include/clap/converters/clap-converter.h
@@ -1,52 +0,0 @@
-#pragma once
-
-#include "../clap.h"
-#include "../stream.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// This interface provides all the tools to convert a clap plugin instance into a clap plugin instance.
-typedef struct clap_clap_converter {
- const char *src_plugin_id;
- const char *dst_plugin_id;
-
- // [main-thread]
- bool (*convert_state)(const struct clap_clap_converter *converter,
- const clap_istream_t *src,
- const clap_ostream_t *dst);
-
- // converts the clap param id and normalized value.
- // [thread-safe]
- bool (*convert_normalized_value)(const struct clap_clap_converter *converter,
- clap_id src_param_id,
- double src_normalized_value,
- clap_id *dst_param_id,
- double *dst_normalized_value);
-
- // converts the clap param id and plain value.
- // [thread-safe]
- bool (*convert_plain_value)(const struct clap_clap_converter *converter,
- clap_id src_param_id,
- double src_plain_value,
- clap_id *dst_param_id,
- double *dst_plain_value);
-} clap_clap_converter_t;
-
-// Factory identifier
-static CLAP_CONSTEXPR const char CLAP_CLAP_CONVERTER_FACTORY_ID[] = "clap.clap-converter-factory/draft0";
-
-// List all the converters available in the current DSO.
-typedef struct clap_clap_converter_factory {
- // Get the number of converters
- uint32_t (*count)(const struct clap_clap_converter_factory *factory);
-
- // Get the converter at the given index
- const clap_clap_converter_t *(*get)(const struct clap_clap_converter_factory *factory,
- uint32_t index);
-} clap_clap_converter_factory_t;
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/include/clap/converters/vst2-converter.h b/include/clap/converters/vst2-converter.h
@@ -1,53 +0,0 @@
-#pragma once
-
-#include "../clap.h"
-#include "../stream.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// This interface provides all the tools to convert a vst2 plugin instance into a clap plugin instance.
-typedef struct clap_vst2_converter {
- uint32_t vst2_plugin_id;
- const char *vst2_plugin_name;
- const char *clap_plugin_id;
-
- // [main-thread]
- bool (*convert_state)(const struct clap_vst2_converter *converter,
- const clap_istream_t *vst2,
- const clap_ostream_t *clap);
-
- // converts the vst2 param id and normalized value to clap.
- // [thread-safe]
- bool (*convert_normalized_value)(const struct clap_vst2_converter *converter,
- uint32_t vst2_param_id,
- double vst2_normalized_value,
- clap_id *clap_param_id,
- double *clap_normalized_value);
-
- // converts the vst2 param id and plain value to clap.
- // [thread-safe]
- bool (*convert_plain_value)(const struct clap_vst2_converter *converter,
- uint32_t vst2_param_id,
- double vst2_plain_value,
- clap_id *clap_param_id,
- double *clap_plain_value);
-} clap_vst2_converter_t;
-
-// Factory identifier
-static CLAP_CONSTEXPR const char CLAP_VST2_CONVERTER_FACTORY_ID[] = "clap.vst2-converter-factory/draft0";
-
-// List all the converters available in the current DSO.
-typedef struct clap_vst2_converter_factory {
- // Get the number of converters
- uint32_t (*count)(const struct clap_vst2_converter_factory *factory);
-
- // Get the converter at the given index
- const clap_vst2_converter_t *(*get)(const struct clap_vst2_converter_factory *factory,
- uint32_t index);
-} clap_vst2_converter_factory_t;
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/include/clap/converters/vst3-converter.h b/include/clap/converters/vst3-converter.h
@@ -1,55 +0,0 @@
-#pragma once
-
-#include "../clap.h"
-#include "../stream.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// This interface provides all the tools to convert a vst3 plugin instance into a clap plugin instance.
-typedef struct clap_vst3_converter {
- // The VST FUID can be constructed by:
- // Steinberg::FUID::fromTUID(conv->vst3_plugin_tuid);
- const int8_t vst3_plugin_tuid[16];
- const char *clap_plugin_id;
-
- // [main-thread]
- bool (*convert_state)(const struct clap_vst3_converter *converter,
- const clap_istream_t *vst3_processor,
- const clap_istream_t *vst3_editor,
- const clap_ostream_t *clap);
-
- // converts the vst3 param id and normalized value to clap.
- // [thread-safe]
- bool (*convert_normalized_value)(const struct clap_vst3_converter *converter,
- uint32_t vst3_param_id,
- double vst3_normalized_value,
- clap_id *clap_param_id,
- double *clap_normalized_value);
-
- // converts the vst3 param id and plain value to clap.
- // [thread-safe]
- bool (*convert_plain_value)(const struct clap_vst3_converter *converter,
- uint32_t vst3_param_id,
- double vst3_plain_value,
- clap_id *clap_param_id,
- double *clap_plain_value);
-} clap_vst3_converter_t;
-
-// Factory identifier
-static CLAP_CONSTEXPR const char CLAP_VST3_CONVERTER_FACTORY_ID[] = "clap.vst3-converter-factory/draft0";
-
-// List all the converters available in the current DSO.
-typedef struct clap_vst3_converter_factory {
- // Get the number of converters
- uint32_t (*count)(const struct clap_vst3_converter_factory *factory);
-
- // Get the converter at the given index
- const clap_vst3_converter_t *(*get)(const struct clap_vst3_converter_factory *factory,
- uint32_t index);
-} clap_vst3_converter_factory_t;
-
-#ifdef __cplusplus
-}
-#endif