Skip to content

Commit d758ff2

Browse files
author
falkTX
committed
Fix some plugins to build against latest juce
1 parent 660d76e commit d758ff2

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

ports/PdPulp/JuceLibraryCode/JucePluginCharacteristics.h

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@
127127
#define JucePlugin_AAXDisableMultiMono 0
128128
#endif
129129

130+
#define JucePlugin_IsMidiEffect 0
131+
130132
#define JucePlugin_WantsLV2Presets 0
131133
#define JucePlugin_WantsLV2State 1
132134
#define JucePlugin_WantsLV2TimePos 0

ports/PdPulp/Source/PluginProcessor.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ void PureDataAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer
155155

156156
// In case we have more outputs than inputs, this code clears any output channels that didn't contain input data, (because these aren't guaranteed to be empty - they may contain garbage).
157157
// I've added this to avoid people getting screaming feedback when they first compile the plugin, but obviously you don't need to this code if your algorithm already fills all the output channels.
158-
for (int i = getNumInputChannels(); i < getNumOutputChannels(); ++i)
158+
for (int i = getTotalNumInputChannels(); i < getTotalNumOutputChannels(); ++i)
159159
buffer.clear (i, 0, buffer.getNumSamples());
160160

161-
int numChannels = jmin (getNumInputChannels(), getNumOutputChannels());
161+
int numChannels = jmin (getTotalNumInputChannels(), getTotalNumOutputChannels());
162162
int len = buffer.getNumSamples();
163163
int idx = 0;
164164

@@ -325,9 +325,9 @@ void PureDataAudioProcessor::reloadPatch (double sampleRate)
325325
}
326326

327327
pd = new pd::PdBase;
328-
pd->init (getNumInputChannels(), getNumOutputChannels(), sampleRate);
328+
pd->init (getTotalNumInputChannels(), getTotalNumOutputChannels(), sampleRate);
329329

330-
int numChannels = jmin (getNumInputChannels(), getNumOutputChannels());
330+
int numChannels = jmin (getTotalNumInputChannels(), getTotalNumOutputChannels());
331331
pdInBuffer.calloc (pd->blockSize() * numChannels);
332332
pdOutBuffer.calloc (pd->blockSize() * numChannels);
333333

ports/argotlunar/JuceLibraryCode/JucePluginCharacteristics.h

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
#define JucePlugin_AAXDisableBypass 0
124124
#endif
125125

126+
#define JucePlugin_IsMidiEffect 0
127+
126128
#define JucePlugin_LV2URI "http://argotlunar.info/"
127129
#define JucePlugin_WantsLV2TimePos 1
128130
#define JucePlugin_WantsLV2Presets 0

ports/argotlunar/Source/Plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void Plugin::releaseResources()
103103

104104
void Plugin::processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
105105
{
106-
if (getNumInputChannels() != 2 && getNumOutputChannels() != 2) {
106+
if (getTotalNumInputChannels() != 2 && getTotalNumOutputChannels() != 2) {
107107
return;
108108
}
109109
float* chan1 = buffer.getWritePointer(0);

ports/radium-compressor/Source/JucePluginCharacteristics.h

+2
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,6 @@
153153
#define JucePlugin_AAXDisableBypass 0
154154
#endif
155155

156+
#define JucePlugin_IsMidiEffect 0
157+
156158
#endif // __JUCE_APPCONFIG_B3USK2__

ports/radium-compressor/Source/compressor_vertical_sliders.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ struct Comp : public MyWidget, public MyTimer{
394394

395395
void timer(){ // virtual method from MyTimer
396396
if(isVisible()){
397-
if(gui_parameters_are_dirty.compareAndSetValue(0,1)){
397+
if(gui_parameters_are_dirty.compareAndSetBool(0,1)){
398398
set_gui_parameters();
399399
updateBackgroundImage();
400400
update();

0 commit comments

Comments
 (0)