@@ -80,6 +80,8 @@ AU_LINK_FLAGS = \ | |||||
-bundle \ | -bundle \ | ||||
-framework AudioToolbox \ | -framework AudioToolbox \ | ||||
-framework AudioUnit \ | -framework AudioUnit \ | ||||
-framework CoreFoundation \ | |||||
-framework CoreServices \ | |||||
-exported_symbols_list $(DPF_PATH)/distrho/src/DistrhoPluginAU.exp | -exported_symbols_list $(DPF_PATH)/distrho/src/DistrhoPluginAU.exp | ||||
# not needed yet | # not needed yet | ||||
@@ -88,7 +90,6 @@ AU_LINK_FLAGS = \ | |||||
# -I$(DPF_PATH)/distrho/src/CoreAudio106/AudioUnits/AUPublic/AUViewBase | # -I$(DPF_PATH)/distrho/src/CoreAudio106/AudioUnits/AUPublic/AUViewBase | ||||
# -I$(DPF_PATH)/distrho/src/CoreAudio106/AudioUnits/AUPublic/OtherBases | # -I$(DPF_PATH)/distrho/src/CoreAudio106/AudioUnits/AUPublic/OtherBases | ||||
# -framework CoreAudio \ | # -framework CoreAudio \ | ||||
# -framework CoreServices \ | |||||
# --------------------------------------------------------------------------------------------------------------------- | # --------------------------------------------------------------------------------------------------------------------- | ||||
# Handle UI stuff, disable UI support automatically | # Handle UI stuff, disable UI support automatically | ||||
@@ -20,7 +20,8 @@ | |||||
#include "Window.hpp" | #include "Window.hpp" | ||||
DemoWidgetClickable::DemoWidgetClickable(Widget* group) | DemoWidgetClickable::DemoWidgetClickable(Widget* group) | ||||
: Widget(group) | |||||
: Widget(group), | |||||
fColorId(0) | |||||
{ | { | ||||
} | } | ||||
@@ -24,5 +24,5 @@ public: | |||||
bool onMouse(const MouseEvent& event) override; | bool onMouse(const MouseEvent& event) override; | ||||
private: | private: | ||||
unsigned fColorId = 0; | |||||
unsigned fColorId; | |||||
}; | }; |
@@ -1,6 +1,6 @@ | |||||
/* | /* | ||||
* DISTRHO Plugin Framework (DPF) | * DISTRHO Plugin Framework (DPF) | ||||
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com> | |||||
* Copyright (C) 2012-2019 Filipe Coelho <falktx@falktx.com> | |||||
* | * | ||||
* Permission to use, copy, modify, and/or distribute this software for any purpose with | * 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 | * or without fee is hereby granted, provided that the above copyright notice and this | ||||
@@ -25,6 +25,5 @@ | |||||
#define DISTRHO_PLUGIN_IS_RT_SAFE 1 | #define DISTRHO_PLUGIN_IS_RT_SAFE 1 | ||||
#define DISTRHO_PLUGIN_NUM_INPUTS 1 | #define DISTRHO_PLUGIN_NUM_INPUTS 1 | ||||
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1 | #define DISTRHO_PLUGIN_NUM_OUTPUTS 1 | ||||
#define DISTRHO_PLUGIN_WANT_LATENCY 0 | |||||
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED | #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED |
@@ -114,28 +114,9 @@ protected: | |||||
parameter.hints = kParameterIsAutomable; | parameter.hints = kParameterIsAutomable; | ||||
parameter.name = "Gain"; | parameter.name = "Gain"; | ||||
parameter.symbol = "gain"; | parameter.symbol = "gain"; | ||||
parameter.unit = "dB"; | |||||
parameter.ranges.def = 1.0f; | parameter.ranges.def = 1.0f; | ||||
parameter.ranges.min = 0.0f; | parameter.ranges.min = 0.0f; | ||||
parameter.ranges.max = 1.0f; | |||||
} | |||||
void initProgramName(uint32_t index, String& programName) override | |||||
{ | |||||
if (index != 0) { | |||||
programName = ""; | |||||
return; | |||||
} | |||||
programName = "Default"; | |||||
} | |||||
void loadProgram(uint32_t index) override | |||||
{ | |||||
if (index != 0) | |||||
return; | |||||
fGain = 1.0; | |||||
parameter.ranges.max = 2.0f; | |||||
} | } | ||||
/* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
@@ -178,9 +159,8 @@ protected: | |||||
{ | { | ||||
const float* const in = inputs[0]; | const float* const in = inputs[0]; | ||||
/* */ float* const out = outputs[0]; | /* */ float* const out = outputs[0]; | ||||
uint32_t i; | |||||
for (i = 0; i < frames; i++) { | |||||
for (uint32_t i = 0; i < frames; i++) { | |||||
out[i] = in[i] * fGain; | out[i] = in[i] * fGain; | ||||
} | } | ||||
} | } | ||||
@@ -31,6 +31,10 @@ endif | |||||
TARGETS += lv2_dsp | TARGETS += lv2_dsp | ||||
TARGETS += vst | TARGETS += vst | ||||
ifeq ($(MACOS),true) | |||||
TARGETS += au | |||||
endif | |||||
all: $(TARGETS) | all: $(TARGETS) | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- |
@@ -2,6 +2,6 @@ | |||||
This example will show how to create a simple plugin in DPF with one parameter.<br/> | This example will show how to create a simple plugin in DPF with one parameter.<br/> | ||||
The plugin will alter the gain by multiplying the input samples by a constant factor 0-1.<br/> | |||||
The plugin will alter the gain by multiplying the input samples by a constant factor 0-2.<br/> | |||||
The plugin has no UI because there's no need for one in this case.<br/> | The plugin has no UI because there's no need for one in this case.<br/> |