Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some plugins to build against latest juce
  • Loading branch information
falkTX committed Aug 24, 2017
1 parent 660d76e commit d758ff2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ports/PdPulp/JuceLibraryCode/JucePluginCharacteristics.h
Expand Up @@ -127,6 +127,8 @@
#define JucePlugin_AAXDisableMultiMono 0
#endif

#define JucePlugin_IsMidiEffect 0

#define JucePlugin_WantsLV2Presets 0
#define JucePlugin_WantsLV2State 1
#define JucePlugin_WantsLV2TimePos 0
Expand Down
8 changes: 4 additions & 4 deletions ports/PdPulp/Source/PluginProcessor.cpp
Expand Up @@ -155,10 +155,10 @@ void PureDataAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer

// 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).
// 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.
for (int i = getNumInputChannels(); i < getNumOutputChannels(); ++i)
for (int i = getTotalNumInputChannels(); i < getTotalNumOutputChannels(); ++i)
buffer.clear (i, 0, buffer.getNumSamples());

int numChannels = jmin (getNumInputChannels(), getNumOutputChannels());
int numChannels = jmin (getTotalNumInputChannels(), getTotalNumOutputChannels());
int len = buffer.getNumSamples();
int idx = 0;

Expand Down Expand Up @@ -325,9 +325,9 @@ void PureDataAudioProcessor::reloadPatch (double sampleRate)
}

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

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

Expand Down
2 changes: 2 additions & 0 deletions ports/argotlunar/JuceLibraryCode/JucePluginCharacteristics.h
Expand Up @@ -123,6 +123,8 @@
#define JucePlugin_AAXDisableBypass 0
#endif

#define JucePlugin_IsMidiEffect 0

#define JucePlugin_LV2URI "http://argotlunar.info/"
#define JucePlugin_WantsLV2TimePos 1
#define JucePlugin_WantsLV2Presets 0
Expand Down
2 changes: 1 addition & 1 deletion ports/argotlunar/Source/Plugin.cpp
Expand Up @@ -103,7 +103,7 @@ void Plugin::releaseResources()

void Plugin::processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
{
if (getNumInputChannels() != 2 && getNumOutputChannels() != 2) {
if (getTotalNumInputChannels() != 2 && getTotalNumOutputChannels() != 2) {
return;
}
float* chan1 = buffer.getWritePointer(0);
Expand Down
2 changes: 2 additions & 0 deletions ports/radium-compressor/Source/JucePluginCharacteristics.h
Expand Up @@ -153,4 +153,6 @@
#define JucePlugin_AAXDisableBypass 0
#endif

#define JucePlugin_IsMidiEffect 0

#endif // __JUCE_APPCONFIG_B3USK2__
Expand Up @@ -394,7 +394,7 @@ struct Comp : public MyWidget, public MyTimer{

void timer(){ // virtual method from MyTimer
if(isVisible()){
if(gui_parameters_are_dirty.compareAndSetValue(0,1)){
if(gui_parameters_are_dirty.compareAndSetBool(0,1)){
set_gui_parameters();
updateBackgroundImage();
update();
Expand Down

0 comments on commit d758ff2

Please sign in to comment.