From 814ecd96ca110d74661a79a8c0bd0fe170bb4637 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 29 Nov 2015 16:44:30 +0100 Subject: [PATCH] Add new metadata to the rest of the plugins --- plugins/Info/DistrhoPluginInfo.h | 5 ++-- plugins/Info/InfoExamplePlugin.cpp | 19 +++++++++++++-- plugins/Latency/LatencyExamplePlugin.cpp | 2 +- plugins/Meters/ExamplePluginMeters.cpp | 22 +++++++++++++++--- plugins/Parameters/DistrhoPluginInfo.h | 5 ++-- .../Parameters/ExamplePluginParameters.cpp | 23 ++++++++++++++++--- plugins/States/DistrhoPluginInfo.h | 5 ++-- plugins/States/ExamplePluginStates.cpp | 23 ++++++++++++++++--- 8 files changed, 86 insertions(+), 18 deletions(-) diff --git a/plugins/Info/DistrhoPluginInfo.h b/plugins/Info/DistrhoPluginInfo.h index 76d5611..03e80b9 100644 --- a/plugins/Info/DistrhoPluginInfo.h +++ b/plugins/Info/DistrhoPluginInfo.h @@ -17,8 +17,9 @@ #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED -#define DISTRHO_PLUGIN_NAME "Info" -#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Info" +#define DISTRHO_PLUGIN_BRAND "DISTRHO" +#define DISTRHO_PLUGIN_NAME "Info" +#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Info" #define DISTRHO_PLUGIN_HAS_UI 1 #define DISTRHO_PLUGIN_IS_RT_SAFE 1 diff --git a/plugins/Info/InfoExamplePlugin.cpp b/plugins/Info/InfoExamplePlugin.cpp index d02b905..f9a508b 100644 --- a/plugins/Info/InfoExamplePlugin.cpp +++ b/plugins/Info/InfoExamplePlugin.cpp @@ -49,6 +49,14 @@ protected: return "Info"; } + /** + Get an extensive comment/description about the plugin. + */ + const char* getDescription() const override + { + return "Plugin to show how to get some basic information sent to the UI."; + } + /** Get the plugin author/maker. */ @@ -57,6 +65,14 @@ protected: return "DISTRHO"; } + /** + Get the plugin homepage. + */ + const char* getHomePage() const override + { + return "https://github.com/DISTRHO/plugin-examples"; + } + /** Get the plugin license name (a single line of text). For commercial plugins this should return some short copyright information. @@ -68,11 +84,10 @@ protected: /** Get the plugin version, in hexadecimal. - TODO format to be defined */ uint32_t getVersion() const override { - return 0x1000; + return d_version(1, 0, 0); } /** diff --git a/plugins/Latency/LatencyExamplePlugin.cpp b/plugins/Latency/LatencyExamplePlugin.cpp index 8fd780f..5dce73f 100644 --- a/plugins/Latency/LatencyExamplePlugin.cpp +++ b/plugins/Latency/LatencyExamplePlugin.cpp @@ -80,7 +80,7 @@ protected: } /** - Get the plugin license (a single line of text or a URL). + Get the plugin license name (a single line of text). For commercial plugins this should return some short copyright information. */ const char* getLicense() const override diff --git a/plugins/Meters/ExamplePluginMeters.cpp b/plugins/Meters/ExamplePluginMeters.cpp index 2a22ed7..dbc415e 100644 --- a/plugins/Meters/ExamplePluginMeters.cpp +++ b/plugins/Meters/ExamplePluginMeters.cpp @@ -1,6 +1,6 @@ /* * DISTRHO Plugin Framework (DPF) - * Copyright (C) 2012-2014 Filipe Coelho + * Copyright (C) 2012-2015 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -48,6 +48,14 @@ protected: return "meters"; } + /** + Get an extensive comment/description about the plugin. + */ + const char* getDescription() const override + { + return "Plugin to demonstrate parameter outputs using meters."; + } + /** Get the plugin author/maker. */ @@ -56,8 +64,17 @@ protected: return "DISTRHO"; } + /** + Get the plugin homepage. + */ + const char* getHomePage() const override + { + return "https://github.com/DISTRHO/plugin-examples"; + } + /** Get the plugin license name (a single line of text). + For commercial plugins this should return some short copyright information. */ const char* getLicense() const override { @@ -66,11 +83,10 @@ protected: /** Get the plugin version, in hexadecimal. - TODO format to be defined */ uint32_t getVersion() const override { - return 0x1000; + return d_version(1, 0, 0); } /** diff --git a/plugins/Parameters/DistrhoPluginInfo.h b/plugins/Parameters/DistrhoPluginInfo.h index d384703..6d90686 100644 --- a/plugins/Parameters/DistrhoPluginInfo.h +++ b/plugins/Parameters/DistrhoPluginInfo.h @@ -17,8 +17,9 @@ #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED -#define DISTRHO_PLUGIN_NAME "Parameters" -#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Parameters" +#define DISTRHO_PLUGIN_BRAND "DISTRHO" +#define DISTRHO_PLUGIN_NAME "Parameters" +#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Parameters" #define DISTRHO_PLUGIN_HAS_UI 1 #define DISTRHO_PLUGIN_IS_RT_SAFE 1 diff --git a/plugins/Parameters/ExamplePluginParameters.cpp b/plugins/Parameters/ExamplePluginParameters.cpp index e97c584..f3a3edb 100644 --- a/plugins/Parameters/ExamplePluginParameters.cpp +++ b/plugins/Parameters/ExamplePluginParameters.cpp @@ -1,6 +1,6 @@ /* * DISTRHO Plugin Framework (DPF) - * Copyright (C) 2012-2014 Filipe Coelho + * Copyright (C) 2012-2015 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -50,6 +50,15 @@ protected: return "parameters"; } + /** + Get an extensive comment/description about the plugin. + */ + const char* getDescription() const override + { + return "Simple plugin to demonstrate parameter usage (including UI).\n\ +The plugin will be treated as an effect, but it will not change the host audio."; + } + /** Get the plugin author/maker. */ @@ -58,8 +67,17 @@ protected: return "DISTRHO"; } + /** + Get the plugin homepage. + */ + const char* getHomePage() const override + { + return "https://github.com/DISTRHO/plugin-examples"; + } + /** Get the plugin license name (a single line of text). + For commercial plugins this should return some short copyright information. */ const char* getLicense() const override { @@ -68,11 +86,10 @@ protected: /** Get the plugin version, in hexadecimal. - TODO format to be defined */ uint32_t getVersion() const override { - return 0x1000; + return d_version(1, 0, 0); } /** diff --git a/plugins/States/DistrhoPluginInfo.h b/plugins/States/DistrhoPluginInfo.h index 5148640..baf14e4 100644 --- a/plugins/States/DistrhoPluginInfo.h +++ b/plugins/States/DistrhoPluginInfo.h @@ -17,8 +17,9 @@ #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED -#define DISTRHO_PLUGIN_NAME "States" -#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/States" +#define DISTRHO_PLUGIN_BRAND "DISTRHO" +#define DISTRHO_PLUGIN_NAME "States" +#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/States" #define DISTRHO_PLUGIN_HAS_UI 1 #define DISTRHO_PLUGIN_IS_RT_SAFE 1 diff --git a/plugins/States/ExamplePluginStates.cpp b/plugins/States/ExamplePluginStates.cpp index 08691f2..f2263b1 100644 --- a/plugins/States/ExamplePluginStates.cpp +++ b/plugins/States/ExamplePluginStates.cpp @@ -1,6 +1,6 @@ /* * DISTRHO Plugin Framework (DPF) - * Copyright (C) 2012-2014 Filipe Coelho + * Copyright (C) 2012-2015 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -46,6 +46,15 @@ protected: return "states"; } + /** + Get an extensive comment/description about the plugin. + */ + const char* getDescription() const override + { + return "Simple plugin to demonstrate state usage (including UI).\n\ +The plugin will be treated as an effect, but it will not change the host audio."; + } + /** Get the plugin author/maker. */ @@ -54,8 +63,17 @@ protected: return "DISTRHO"; } + /** + Get the plugin homepage. + */ + const char* getHomePage() const override + { + return "https://github.com/DISTRHO/plugin-examples"; + } + /** Get the plugin license name (a single line of text). + For commercial plugins this should return some short copyright information. */ const char* getLicense() const override { @@ -64,11 +82,10 @@ protected: /** Get the plugin version, in hexadecimal. - TODO format to be defined */ uint32_t getVersion() const override { - return 0x1000; + return d_version(1, 0, 0); } /**