From 69633c12ab48c8fd57907929e6a093b97c2af131 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 28 Jan 2019 21:32:49 +0000 Subject: Automatically detect Rez flags; Add test prints --- examples/Gain/DistrhoPluginInfo.h | 3 +++ examples/Gain/GainExamplePlugin.cpp | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'examples') 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; -- cgit v1.2.3