Browse Source

Fix a few plugins for linux-embed build

Signed-off-by: falkTX <falktx@falktx.com>
pull/117/head
falkTX 1 year ago
parent
commit
a373427490
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
7 changed files with 16 additions and 2 deletions
  1. +2
    -0
      libs/drowaudio/source/dRowAudio/parameters/dRowAudio_PluginParameter.cpp
  2. +4
    -2
      libs/drowaudio/source/dRowAudio/parameters/dRowAudio_PluginParameter.h
  3. +2
    -0
      ports-juce5/obxd/source/PluginProcessor.cpp
  4. +2
    -0
      ports-juce5/obxd/source/PluginProcessor.h
  5. +2
    -0
      ports-juce5/vex/source/Vex-src.cpp
  6. +2
    -0
      ports-juce6.1/swankyamp/source/Utils.cpp
  7. +2
    -0
      ports-juce6.1/swankyamp/source/Utils.h

+ 2
- 0
libs/drowaudio/source/dRowAudio/parameters/dRowAudio_PluginParameter.cpp View File

@@ -169,6 +169,7 @@ 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);
@@ -176,6 +177,7 @@ void PluginParameter::setupSlider (Slider &slider)
slider.setValue (getValue(), dontSendNotification);
slider.setTextValueSuffix (unitSuffix);
}
#endif

double PluginParameter::normaliseValue (double scaledValue)
{


+ 4
- 2
libs/drowaudio/source/dRowAudio/parameters/dRowAudio_PluginParameter.h View File

@@ -134,8 +134,10 @@ public:
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:
@@ -152,4 +154,4 @@ private:
JUCE_LEAK_DETECTOR (PluginParameter);
};

#endif //__DROWAUDIO_PLUGINPARAMETER_H__
#endif //__DROWAUDIO_PLUGINPARAMETER_H__

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

@@ -661,6 +661,7 @@ void ObxdAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& mi
}
}

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

//==============================================================================
void ObxdAudioProcessor::getStateInformation (MemoryBlock& destData)


+ 2
- 0
ports-juce5/obxd/source/PluginProcessor.h View File

@@ -130,8 +130,10 @@ public:
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);


+ 2
- 0
ports-juce5/vex/source/Vex-src.cpp View File

@@ -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
- 0
ports-juce6.1/swankyamp/source/Utils.cpp View File

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


+ 2
- 0
ports-juce6.1/swankyamp/source/Utils.h View File

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


Loading…
Cancel
Save