summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2019-01-28 21:32:49 +0000
committerfalkTX <falktx@gmail.com>2019-01-28 21:32:49 +0000
commit69633c12ab48c8fd57907929e6a093b97c2af131 (patch)
tree60bcab61934750b82e933706ae5e99ec3781a793 /examples
parentf34d282af0fcb203ff34bc24ac2a7816708c2912 (diff)
Automatically detect Rez flags; Add test prints
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;