summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Gain/DistrhoPluginInfo.h3
-rw-r--r--examples/Gain/GainExamplePlugin.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/examples/Gain/DistrhoPluginInfo.h b/examples/Gain/DistrhoPluginInfo.h
index 39c42af8..f4fedac7 100644
--- a/examples/Gain/DistrhoPluginInfo.h
+++ b/examples/Gain/DistrhoPluginInfo.h
@@ -26,4 +26,7 @@
#define DISTRHO_PLUGIN_NUM_INPUTS 1
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1
+#define DISTRHO_PLUGIN_AU_SUBTYPE 'gain'
+#define DISTRHO_PLUGIN_AU_MANUF 'dpf '
+
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
diff --git a/examples/Gain/GainExamplePlugin.cpp b/examples/Gain/GainExamplePlugin.cpp
index 351bcbda..18f631c1 100644
--- a/examples/Gain/GainExamplePlugin.cpp
+++ b/examples/Gain/GainExamplePlugin.cpp
@@ -117,6 +117,8 @@ protected:
parameter.ranges.def = 1.0f;
parameter.ranges.min = 0.0f;
parameter.ranges.max = 2.0f;
+
+ d_stdout("initParameter %u", index);
}
/* --------------------------------------------------------------------------------------------------------
@@ -128,6 +130,7 @@ protected:
*/
float getParameterValue(uint32_t index) const override
{
+ d_stdout("getParameterValue %u %f", index, fGain);
if (index != 0)
return 0.0f;
@@ -142,6 +145,7 @@ protected:
*/
void setParameterValue(uint32_t index, float value) override
{
+ d_stdout("setParameterValue %u %f", index, value);
if (index != 0)
return;