@@ -347,7 +347,11 @@ bool TheFunctionAudioProcessor::hasEditor() const | |||||
AudioProcessorEditor* TheFunctionAudioProcessor::createEditor() | AudioProcessorEditor* TheFunctionAudioProcessor::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TheFunctionAudioProcessorEditor (this); | return new TheFunctionAudioProcessorEditor (this); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -26,11 +26,14 @@ | |||||
_smoothedValue_ - This should be used in the audio processing - | _smoothedValue_ - This should be used in the audio processing - | ||||
eg. for gain.. sample = sample * smoothedValue. **/ | eg. for gain.. sample = sample * smoothedValue. **/ | ||||
class PluginParameter : public Component | |||||
class PluginParameter | |||||
#if ! JUCE_LINUX_EMBED | |||||
: public Component | |||||
#endif | |||||
{ | { | ||||
public: | public: | ||||
PluginParameter(); | PluginParameter(); | ||||
~PluginParameter() override; | |||||
~PluginParameter(); | |||||
/** Set the value of the parameter. | /** Set the value of the parameter. | ||||
This would be the value set by the host/UI etc. | This would be the value set by the host/UI etc. | ||||
@@ -275,7 +275,11 @@ bool ThePilgrimAudioProcessor::hasEditor() const | |||||
AudioProcessorEditor* ThePilgrimAudioProcessor::createEditor() | AudioProcessorEditor* ThePilgrimAudioProcessor::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new ThePilgrimAudioProcessorEditor (this); | return new ThePilgrimAudioProcessorEditor (this); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -387,7 +387,11 @@ void DRowAudioFilter::processBlock (AudioSampleBuffer& buffer, | |||||
//============================================================================== | //============================================================================== | ||||
AudioProcessorEditor* DRowAudioFilter::createEditor() | AudioProcessorEditor* DRowAudioFilter::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new DRowAudioEditorComponent (this); | return new DRowAudioEditorComponent (this); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -394,7 +394,11 @@ void DRowAudioFilter::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiM | |||||
//============================================================================== | //============================================================================== | ||||
AudioProcessorEditor* DRowAudioFilter::createEditor() | AudioProcessorEditor* DRowAudioFilter::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new DRowAudioEditorComponent (this); | return new DRowAudioEditorComponent (this); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -442,7 +442,11 @@ void DRowAudioFilter::processBlock (AudioSampleBuffer& buffer, | |||||
//============================================================================== | //============================================================================== | ||||
AudioProcessorEditor* DRowAudioFilter::createEditor() | AudioProcessorEditor* DRowAudioFilter::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new DRowAudioEditorComponent (this); | return new DRowAudioEditorComponent (this); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -520,7 +520,11 @@ void DRowAudioFilter::setupFilter(LBCF &filter, float fbCoeff, float delayTime, | |||||
//============================================================================== | //============================================================================== | ||||
AudioProcessorEditor* DRowAudioFilter::createEditor() | AudioProcessorEditor* DRowAudioFilter::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new DRowAudioEditorComponent (this); | return new DRowAudioEditorComponent (this); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -222,7 +222,11 @@ bool TremoloAudioProcessor::hasEditor() const | |||||
AudioProcessorEditor* TremoloAudioProcessor::createEditor() | AudioProcessorEditor* TremoloAudioProcessor::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TremoloAudioProcessorEditor (this); | return new TremoloAudioProcessorEditor (this); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -300,7 +300,11 @@ bool LuftikusAudioProcessor::hasEditor() const | |||||
AudioProcessorEditor* LuftikusAudioProcessor::createEditor() | AudioProcessorEditor* LuftikusAudioProcessor::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new LuftikusAudioProcessorEditor (this, guiType); | return new LuftikusAudioProcessorEditor (this, guiType); | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -591,8 +591,12 @@ bool ObxdAudioProcessor::hasEditor() const | |||||
AudioProcessorEditor* ObxdAudioProcessor::createEditor() | AudioProcessorEditor* ObxdAudioProcessor::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new ObxdAudioProcessorEditor (this); | return new ObxdAudioProcessorEditor (this); | ||||
//return NULL; | //return NULL; | ||||
#endif | |||||
} | } | ||||
//============================================================================== | //============================================================================== | ||||
@@ -314,10 +314,14 @@ void TalCore::processBlock (AudioSampleBuffer& buffer, | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
// Work around -> otherwise the combo box values will be overwritten | // Work around -> otherwise the combo box values will be overwritten | ||||
//TalComponent *tal = new TalComponent (this); | //TalComponent *tal = new TalComponent (this); | ||||
//sendChangeMessage (this); | //sendChangeMessage (this); | ||||
return new TalComponent (this); | return new TalComponent (this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -272,7 +272,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer, | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TalComponent (this); | return new TalComponent (this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -331,7 +331,11 @@ void TalCore::processMidiPerSample(MidiBuffer::Iterator *midiIterator, MidiMessa | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TalComponent (this); | return new TalComponent (this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -653,7 +653,11 @@ inline bool TalCore::getNextEvent(MidiBuffer::Iterator *midiIterator, const int | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TalComponent (this); | return new TalComponent (this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -272,7 +272,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer, | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TalComponent (this); | return new TalComponent (this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -257,7 +257,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer, | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TalComponent (this); | return new TalComponent (this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -214,7 +214,11 @@ void TalCore::processBlock (AudioSampleBuffer& buffer, | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new ReverbComponent (this); | return new ReverbComponent (this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -413,7 +413,11 @@ inline bool TalCore::getNextEvent(MidiBuffer::Iterator *midiIterator, const int | |||||
AudioProcessorEditor* TalCore::createEditor() | AudioProcessorEditor* TalCore::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new TalComponent(this); | return new TalComponent(this); | ||||
#endif | |||||
} | } | ||||
void TalCore::getStateInformation (MemoryBlock& destData) | void TalCore::getStateInformation (MemoryBlock& destData) | ||||
@@ -487,8 +487,10 @@ void VexFilter::setStateInformation (const void* data_, int dataSize) | |||||
getCallbackLock().exit(); | getCallbackLock().exit(); | ||||
#if ! JUCE_LINUX_EMBED | |||||
if (AudioProcessorEditor* const editor = getActiveEditor()) | if (AudioProcessorEditor* const editor = getActiveEditor()) | ||||
((VexEditorComponent*)editor)->setNeedsUpdate(); | ((VexEditorComponent*)editor)->setNeedsUpdate(); | ||||
#endif | |||||
} | } | ||||
delete xmlState; | delete xmlState; | ||||
@@ -518,7 +520,11 @@ void VexFilter::getStateInformation (MemoryBlock& destData) | |||||
AudioProcessorEditor* VexFilter::createEditor() | AudioProcessorEditor* VexFilter::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
return new VexEditorComponent(this, this, fArpSet1, fArpSet2, fArpSet3); | return new VexEditorComponent(this, this, fArpSet1, fArpSet2, fArpSet3); | ||||
#endif | |||||
} | } | ||||
void VexFilter::getChangedParameters(bool params[92]) | void VexFilter::getChangedParameters(bool params[92]) | ||||
@@ -312,8 +312,10 @@ void wolp::setParameter (int idx, float value) | |||||
paraminfos[idx].dirty = true; | paraminfos[idx].dirty = true; | ||||
#if ! JUCE_LINUX_EMBED | |||||
if (getActiveEditor()) | if (getActiveEditor()) | ||||
sendChangeMessage(); | sendChangeMessage(); | ||||
#endif | |||||
} | } | ||||
@@ -394,6 +396,7 @@ void wolp::processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages) | |||||
} | } | ||||
#if ! JUCE_LINUX_EMBED | |||||
tabbed_editor *e= (tabbed_editor*)getActiveEditor(); | tabbed_editor *e= (tabbed_editor*)getActiveEditor(); | ||||
if(e) | if(e) | ||||
{ | { | ||||
@@ -416,6 +419,7 @@ void wolp::processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages) | |||||
// harmful in process callback? | // harmful in process callback? | ||||
// e->setPolyText(String("Poly: ") + String(nPoly)); | // e->setPolyText(String("Poly: ") + String(nPoly)); | ||||
} | } | ||||
#endif | |||||
} | } | ||||
@@ -510,8 +514,12 @@ void wolp::renderNextBlock (AudioSampleBuffer& outputBuffer, | |||||
AudioProcessorEditor* wolp::createEditor() | AudioProcessorEditor* wolp::createEditor() | ||||
{ | { | ||||
#if JUCE_LINUX_EMBED | |||||
return nullptr; | |||||
#else | |||||
tabbed_editor *e= new tabbed_editor(this); | tabbed_editor *e= new tabbed_editor(this); | ||||
return e; | return e; | ||||
#endif | |||||
} | } | ||||