Skip to content

Commit

Permalink
Fix a few plugins for linux-embed build
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Nov 26, 2023
1 parent e6b52f0 commit a373427
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,15 @@ void PluginParameter::readXml (const XmlElement* xmlState)
setValue (xmlState->getDoubleAttribute (getXmlName(name), getValue()));
}

#if ! JUCE_AUDIOPROCESSOR_NO_GUI
void PluginParameter::setupSlider (Slider &slider)
{
slider.setRange (min, max, step);
slider.setSkewFactor (skewFactor);
slider.setValue (getValue(), dontSendNotification);
slider.setTextValueSuffix (unitSuffix);
}
#endif

double PluginParameter::normaliseValue (double scaledValue)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ class PluginParameter
void readXml (const XmlElement* xmlState);

/** Sets up a given slider with the parmeters properties.
*/
*/
#if ! JUCE_AUDIOPROCESSOR_NO_GUI
void setupSlider (Slider& slider);
#endif
double normaliseValue (double scaledValue);

private:
Expand All @@ -152,4 +154,4 @@ class PluginParameter
JUCE_LEAK_DETECTOR (PluginParameter);
};

#endif //__DROWAUDIO_PLUGINPARAMETER_H__
#endif //__DROWAUDIO_PLUGINPARAMETER_H__
2 changes: 2 additions & 0 deletions ports-juce5/obxd/source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ void ObxdAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& mi
}
}

#if ! JUCE_AUDIOPROCESSOR_NO_GUI
//==============================================================================
bool ObxdAudioProcessor::hasEditor() const
{
Expand All @@ -671,6 +672,7 @@ AudioProcessorEditor* ObxdAudioProcessor::createEditor()
{
return new ObxdAudioProcessorEditor (this);
}
#endif

//==============================================================================
void ObxdAudioProcessor::getStateInformation (MemoryBlock& destData)
Expand Down
2 changes: 2 additions & 0 deletions ports-juce5/obxd/source/PluginProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ class ObxdAudioProcessor :
void processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages);

//==============================================================================
#if ! JUCE_AUDIOPROCESSOR_NO_GUI
AudioProcessorEditor* createEditor();
bool hasEditor() const;
#endif

//==============================================================================
void processMidiPerSample(MidiBuffer::Iterator* iter,const int samplePos);
Expand Down
2 changes: 2 additions & 0 deletions ports-juce5/vex/source/Vex-src.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
#include "vex/VexVoice.cpp"
#include "vex/VexWaveRenderer.cpp"

#if ! JUCE_AUDIOPROCESSOR_NO_GUI
#include "vex/lookandfeel/MyLookAndFeel.cpp"
#endif

#include "vex/resources/Resources.cpp"
2 changes: 2 additions & 0 deletions ports-juce6.1/swankyamp/source/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ float angleModulo(float angle)
return modulo;
}

#if ! JUCE_AUDIOPROCESSOR_NO_GUI
void fillImageNoise(Image& image, Random& rng, float alpha)
{
if (image.getFormat() != Image::PixelFormat::ARGB)
Expand All @@ -45,6 +46,7 @@ Image buildImageNoise(int width, int height, Random& rng, float alpha)
fillImageNoise(noise, rng, alpha);
return noise;
}
#endif

VersionNumber parseVersionString(const String& versionString)
{
Expand Down
2 changes: 2 additions & 0 deletions ports-juce6.1/swankyamp/source/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ std::vector<String> buildParameterIds(const SerializedState& state);

float angleModulo(float angle);

#if ! JUCE_AUDIOPROCESSOR_NO_GUI
Image buildImageNoise(int width, int height, Random& rng, float alpha);
#endif

/**
* @brief Remap a float value to a positive and negative range.
Expand Down

0 comments on commit a373427

Please sign in to comment.