commit f41fdb60b66950c8a4b0c9b49102c39940248b0c
parent 8fd0ce01f818d88126ae66ada8b608e66869e006
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Wed, 12 Oct 2016 12:16:47 +0200
Simplification
Diffstat:
2 files changed, 11 insertions(+), 43 deletions(-)
diff --git a/include/clap/clap.h b/include/clap/clap.h
@@ -80,17 +80,22 @@ enum clap_log_severity
CLAP_LOG_FATAL = 4,
};
+// Id of the plugin
# define CLAP_ATTR_ID "clap/id"
+// Name of the plugin
# define CLAP_ATTR_NAME "clap/name"
+// Description of the plugin
# define CLAP_ATTR_DESCRIPTION "clap/description"
+// Product version string
# define CLAP_ATTR_VERSION "clap/version"
+// Manufacturer name
# define CLAP_ATTR_MANUFACTURER "clap/manufacturer"
+// Url to product
# define CLAP_ATTR_URL "clap/url"
+// Url to support page, or mail to support
# define CLAP_ATTR_SUPPORT "clap/support"
-# define CLAP_ATTR_LICENSE "clap/license"
+// A string containing a list of categories, joined with `;'. For example: `fm;analogue;delay'.
# define CLAP_ATTR_CATEGORIES "clap/categories"
-# define CLAP_ATTR_TYPE "clap/type"
-# define CLAP_ATTR_CHUNK_SIZE "clap/chunk_size"
// Should be "1" if the plugin supports tunning.
# define CLAP_ATTR_SUPPORTS_TUNING "clap/supports_tuning"
// Should be "1" if the plugin is doing remote processing.
@@ -294,6 +299,8 @@ struct clap_plugin
void *host_data; // reserved pointer for the host
void *plugin_data; // reserved pointer for the plugin
+ enum clap_plugin_type plugin_type;
+
/* Free the plugin and its resources.
* It is not required to deactivate the plugin prior to this call. */
void (*destroy)(struct clap_plugin *plugin);
diff --git a/spec.rst b/spec.rst
@@ -118,46 +118,7 @@ a few methods. This attribute must be initialized by the plugin with
Then to get plugin's attribute, you have to use ``plugin->get_attribute(plugin, ...)``.
-+--------------------------------+---------------------------------------------------------------+
-| Attribute | Description |
-+================================+===============================================================+
-| CLAP_ATTR_ID | Unique identifier of the plugin. It should never change. It |
-| | should be the same on any plateform. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_NAME | The name of the product. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_DESCRIPTION | A brief description of the product. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_MANUFACTURER | Which company made the plugin. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_VERSION | A string describing the product version. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_URL | An URL to the product homepage. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_LICENSE | The plugin license type, Custom, GPLv3, MIT, ... |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_SUPPORT | A link to the support, it can be |
-| | ``mailto:support@company.com`` or |
-| | ``http://company.com/support``. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_CATEGORIES | A string containing a list of categories, joined with ``;``. |
-| | For example: ``fm;analogue;delay``. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_TYPE | Bitfield describing what the plugin does. See |
-| | ``enum clap_plugin_type``. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_CHUNK_SIZE | The process buffer must have a number of sample multiple of |
-| | ``chunk_size``. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_LATENCY | The latency introduced by the plugin. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_SUPPORTS_TUNING | ``1`` if the plugin supports tuning. |
-+--------------------------------+---------------------------------------------------------------+
-| CLAP_ATTR_IS_REMOTE_PROCESSING | ``1`` if the plugin is doing remote processing. This can help |
-| | the DAW's task scheduling. |
-+--------------------------------+---------------------------------------------------------------+
-| ..._IN_PLACE_PROCESSING | ``1`` if the plugin supports in place processing. |
-+--------------------------------+---------------------------------------------------------------+
+See the ``#include <clap/clap.h>`` for more information.
Extension system
~~~~~~~~~~~~~~~~