Browse Source

Implement new metadata on Latency

pull/2/head
falkTX 9 years ago
parent
commit
523217898e
4 changed files with 26 additions and 9 deletions
  1. +1
    -1
      dpf
  2. +3
    -2
      plugins/Latency/DistrhoPluginInfo.h
  3. +19
    -4
      plugins/Latency/LatencyExamplePlugin.cpp
  4. +3
    -2
      plugins/Meters/DistrhoPluginInfo.h

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 2ed2eab14b11cdc20c5b83b526e347e96ab4e138
Subproject commit eafa8349a9dd745a3739a78166606801c17240d2

+ 3
- 2
plugins/Latency/DistrhoPluginInfo.h View File

@@ -17,8 +17,9 @@
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
#define DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED


#define DISTRHO_PLUGIN_NAME "Latency"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Latency"
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
#define DISTRHO_PLUGIN_NAME "Latency"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Latency"


#define DISTRHO_PLUGIN_HAS_UI 0 #define DISTRHO_PLUGIN_HAS_UI 0
#define DISTRHO_PLUGIN_IS_RT_SAFE 1 #define DISTRHO_PLUGIN_IS_RT_SAFE 1


+ 19
- 4
plugins/Latency/LatencyExamplePlugin.cpp View File

@@ -21,7 +21,7 @@ START_NAMESPACE_DISTRHO
// ----------------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------------
/** /**
Plugin to show how to get some basic information sent to the UI.
Plugin that demonstrates the latency API in DPF.
*/ */
class LatencyExamplePlugin : public Plugin class LatencyExamplePlugin : public Plugin
{ {
@@ -55,6 +55,14 @@ protected:
return "Latency"; return "Latency";
} }
/**
Get an extensive comment/description about the plugin.
*/
const char* getDescription() const override
{
return "Plugin that demonstrates the latency API in DPF.";
}
/** /**
Get the plugin author/maker. Get the plugin author/maker.
*/ */
@@ -64,7 +72,15 @@ protected:
} }
/** /**
Get the plugin license name (a single line of text).
Get the plugin homepage.
*/
const char* getHomePage() const override
{
return "https://github.com/DISTRHO/plugin-examples";
}
/**
Get the plugin license (a single line of text or a URL).
For commercial plugins this should return some short copyright information. For commercial plugins this should return some short copyright information.
*/ */
const char* getLicense() const override const char* getLicense() const override
@@ -74,11 +90,10 @@ protected:
/** /**
Get the plugin version, in hexadecimal. Get the plugin version, in hexadecimal.
TODO format to be defined
*/ */
uint32_t getVersion() const override uint32_t getVersion() const override
{ {
return 0x1000;
return d_version(1, 0, 0);
} }
/** /**


+ 3
- 2
plugins/Meters/DistrhoPluginInfo.h View File

@@ -17,8 +17,9 @@
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
#define DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED


#define DISTRHO_PLUGIN_NAME "Meters"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Meters"
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
#define DISTRHO_PLUGIN_NAME "Meters"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/examples/Meters"


#define DISTRHO_PLUGIN_HAS_UI 1 #define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_PLUGIN_IS_RT_SAFE 1 #define DISTRHO_PLUGIN_IS_RT_SAFE 1


Loading…
Cancel
Save