Browse Source

Fix some plugins to build against latest juce

master
falkTX 7 years ago
parent
commit
d758ff2bec
6 changed files with 12 additions and 6 deletions
  1. +2
    -0
      ports/PdPulp/JuceLibraryCode/JucePluginCharacteristics.h
  2. +4
    -4
      ports/PdPulp/Source/PluginProcessor.cpp
  3. +2
    -0
      ports/argotlunar/JuceLibraryCode/JucePluginCharacteristics.h
  4. +1
    -1
      ports/argotlunar/Source/Plugin.cpp
  5. +2
    -0
      ports/radium-compressor/Source/JucePluginCharacteristics.h
  6. +1
    -1
      ports/radium-compressor/Source/compressor_vertical_sliders.cpp

+ 2
- 0
ports/PdPulp/JuceLibraryCode/JucePluginCharacteristics.h View File

@@ -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


+ 4
- 4
ports/PdPulp/Source/PluginProcessor.cpp View File

@@ -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;
@@ -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);


+ 2
- 0
ports/argotlunar/JuceLibraryCode/JucePluginCharacteristics.h View File

@@ -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


+ 1
- 1
ports/argotlunar/Source/Plugin.cpp View File

@@ -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);


+ 2
- 0
ports/radium-compressor/Source/JucePluginCharacteristics.h View File

@@ -153,4 +153,6 @@
#define JucePlugin_AAXDisableBypass 0
#endif
#define JucePlugin_IsMidiEffect 0
#endif // __JUCE_APPCONFIG_B3USK2__

+ 1
- 1
ports/radium-compressor/Source/compressor_vertical_sliders.cpp View File

@@ -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();


Loading…
Cancel
Save