Browse Source

Tweak plugins to build against JUCE_LINUX_EMBED

tags/2018-04-16
falkTX 7 years ago
parent
commit
5fc083166e
20 changed files with 87 additions and 2 deletions
  1. +4
    -0
      ports/arctican-function/source/PluginProcessor.cpp
  2. +5
    -2
      ports/arctican-pilgrim/source/PluginParameter.h
  3. +4
    -0
      ports/arctican-pilgrim/source/PluginProcessor.cpp
  4. +4
    -0
      ports/drowaudio-distortion/source/DRowAudioFilter.cpp
  5. +4
    -0
      ports/drowaudio-distortionshaper/source/DRowAudioFilter.cpp
  6. +4
    -0
      ports/drowaudio-flanger/source/DRowAudioFilter.cpp
  7. +4
    -0
      ports/drowaudio-reverb/source/DRowAudioFilter.cpp
  8. +4
    -0
      ports/drowaudio-tremolo/source/PluginProcessor.cpp
  9. +4
    -0
      ports/luftikus/source/PluginProcessor.cpp
  10. +4
    -0
      ports/obxd/source/PluginProcessor.cpp
  11. +4
    -0
      ports/tal-dub-3/source/TalCore.cpp
  12. +4
    -0
      ports/tal-filter-2/source/TalCore.cpp
  13. +4
    -0
      ports/tal-filter/source/TalCore.cpp
  14. +4
    -0
      ports/tal-noisemaker/source/TalCore.cpp
  15. +4
    -0
      ports/tal-reverb-2/source/TalCore.cpp
  16. +4
    -0
      ports/tal-reverb-3/source/TalCore.cpp
  17. +4
    -0
      ports/tal-reverb/source/TalCore.cpp
  18. +4
    -0
      ports/tal-vocoder-2/source/TalCore.cpp
  19. +6
    -0
      ports/vex/source/VexFilter.cpp
  20. +8
    -0
      ports/wolpertinger/source/synth.cpp

+ 4
- 0
ports/arctican-function/source/PluginProcessor.cpp View File

@@ -347,7 +347,11 @@ bool TheFunctionAudioProcessor::hasEditor() const
AudioProcessorEditor* TheFunctionAudioProcessor::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TheFunctionAudioProcessorEditor (this);
#endif
}
//==============================================================================


+ 5
- 2
ports/arctican-pilgrim/source/PluginParameter.h View File

@@ -26,11 +26,14 @@
_smoothedValue_ - This should be used in the audio processing -
eg. for gain.. sample = sample * smoothedValue. **/
class PluginParameter : public Component
class PluginParameter
#if ! JUCE_LINUX_EMBED
: public Component
#endif
{
public:
PluginParameter();
~PluginParameter() override;
~PluginParameter();
/** Set the value of the parameter.
This would be the value set by the host/UI etc.


+ 4
- 0
ports/arctican-pilgrim/source/PluginProcessor.cpp View File

@@ -275,7 +275,11 @@ bool ThePilgrimAudioProcessor::hasEditor() const
AudioProcessorEditor* ThePilgrimAudioProcessor::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new ThePilgrimAudioProcessorEditor (this);
#endif
}
//==============================================================================


+ 4
- 0
ports/drowaudio-distortion/source/DRowAudioFilter.cpp View File

@@ -387,7 +387,11 @@ void DRowAudioFilter::processBlock (AudioSampleBuffer& buffer,
//==============================================================================
AudioProcessorEditor* DRowAudioFilter::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new DRowAudioEditorComponent (this);
#endif
}

//==============================================================================


+ 4
- 0
ports/drowaudio-distortionshaper/source/DRowAudioFilter.cpp View File

@@ -394,7 +394,11 @@ void DRowAudioFilter::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiM
//==============================================================================
AudioProcessorEditor* DRowAudioFilter::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new DRowAudioEditorComponent (this);
#endif
}

//==============================================================================


+ 4
- 0
ports/drowaudio-flanger/source/DRowAudioFilter.cpp View File

@@ -442,7 +442,11 @@ void DRowAudioFilter::processBlock (AudioSampleBuffer& buffer,
//==============================================================================
AudioProcessorEditor* DRowAudioFilter::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new DRowAudioEditorComponent (this);
#endif
}

//==============================================================================


+ 4
- 0
ports/drowaudio-reverb/source/DRowAudioFilter.cpp View File

@@ -520,7 +520,11 @@ void DRowAudioFilter::setupFilter(LBCF &filter, float fbCoeff, float delayTime,
//==============================================================================
AudioProcessorEditor* DRowAudioFilter::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new DRowAudioEditorComponent (this);
#endif
}

//==============================================================================


+ 4
- 0
ports/drowaudio-tremolo/source/PluginProcessor.cpp View File

@@ -222,7 +222,11 @@ bool TremoloAudioProcessor::hasEditor() const
AudioProcessorEditor* TremoloAudioProcessor::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TremoloAudioProcessorEditor (this);
#endif
}
//==============================================================================


+ 4
- 0
ports/luftikus/source/PluginProcessor.cpp View File

@@ -300,7 +300,11 @@ bool LuftikusAudioProcessor::hasEditor() const
AudioProcessorEditor* LuftikusAudioProcessor::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new LuftikusAudioProcessorEditor (this, guiType);
#endif
}
//==============================================================================


+ 4
- 0
ports/obxd/source/PluginProcessor.cpp View File

@@ -591,8 +591,12 @@ bool ObxdAudioProcessor::hasEditor() const

AudioProcessorEditor* ObxdAudioProcessor::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new ObxdAudioProcessorEditor (this);
//return NULL;
#endif
}

//==============================================================================


+ 4
- 0
ports/tal-dub-3/source/TalCore.cpp View File

@@ -314,10 +314,14 @@ void TalCore::processBlock (AudioSampleBuffer& buffer,
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
// Work around -> otherwise the combo box values will be overwritten
//TalComponent *tal = new TalComponent (this);
//sendChangeMessage (this);
return new TalComponent (this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 4
- 0
ports/tal-filter-2/source/TalCore.cpp View File

@@ -272,7 +272,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer,
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TalComponent (this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 4
- 0
ports/tal-filter/source/TalCore.cpp View File

@@ -331,7 +331,11 @@ void TalCore::processMidiPerSample(MidiBuffer::Iterator *midiIterator, MidiMessa
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TalComponent (this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 4
- 0
ports/tal-noisemaker/source/TalCore.cpp View File

@@ -653,7 +653,11 @@ inline bool TalCore::getNextEvent(MidiBuffer::Iterator *midiIterator, const int
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TalComponent (this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 4
- 0
ports/tal-reverb-2/source/TalCore.cpp View File

@@ -272,7 +272,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer,
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TalComponent (this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 4
- 0
ports/tal-reverb-3/source/TalCore.cpp View File

@@ -257,7 +257,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer,
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TalComponent (this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 4
- 0
ports/tal-reverb/source/TalCore.cpp View File

@@ -214,7 +214,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer,
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new ReverbComponent (this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 4
- 0
ports/tal-vocoder-2/source/TalCore.cpp View File

@@ -413,7 +413,11 @@ inline bool TalCore::getNextEvent(MidiBuffer::Iterator *midiIterator, const int
AudioProcessorEditor* TalCore::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new TalComponent(this);
#endif
}
void TalCore::getStateInformation (MemoryBlock& destData)


+ 6
- 0
ports/vex/source/VexFilter.cpp View File

@@ -487,8 +487,10 @@ void VexFilter::setStateInformation (const void* data_, int dataSize)
getCallbackLock().exit();
#if ! JUCE_LINUX_EMBED
if (AudioProcessorEditor* const editor = getActiveEditor())
((VexEditorComponent*)editor)->setNeedsUpdate();
#endif
}
delete xmlState;
@@ -518,7 +520,11 @@ void VexFilter::getStateInformation (MemoryBlock& destData)
AudioProcessorEditor* VexFilter::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
return new VexEditorComponent(this, this, fArpSet1, fArpSet2, fArpSet3);
#endif
}
void VexFilter::getChangedParameters(bool params[92])


+ 8
- 0
ports/wolpertinger/source/synth.cpp View File

@@ -312,8 +312,10 @@ void wolp::setParameter (int idx, float value)
paraminfos[idx].dirty = true;
#if ! JUCE_LINUX_EMBED
if (getActiveEditor())
sendChangeMessage();
#endif
}
@@ -394,6 +396,7 @@ void wolp::processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
}
#if ! JUCE_LINUX_EMBED
tabbed_editor *e= (tabbed_editor*)getActiveEditor();
if(e)
{
@@ -416,6 +419,7 @@ void wolp::processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
// harmful in process callback?
// e->setPolyText(String("Poly: ") + String(nPoly));
}
#endif
}
@@ -510,8 +514,12 @@ void wolp::renderNextBlock (AudioSampleBuffer& outputBuffer,
AudioProcessorEditor* wolp::createEditor()
{
#if JUCE_LINUX_EMBED
return nullptr;
#else
tabbed_editor *e= new tabbed_editor(this);
return e;
#endif
}

Loading…
Cancel
Save