File tmp.patch of Package juce
--- /home/kv/rpmbuild/BUILD/JUCE-5.4.7/modules/juce_audio_processors/processors/juce_AudioProcessor.h 2020-03-02 15:27:21.020180098 +1000
+++ /usr/share/juce/modules/juce_audio_processors/processors/juce_AudioProcessor.h 2020-02-14 13:13:07.000000000 +1000
@@ -927,6 +927,7 @@
*/
virtual void setNonRealtime (bool isNonRealtime) noexcept;
+ #if ! JUCE_AUDIOPROCESSOR_NO_GUI
//==============================================================================
/** Creates the processor's GUI.
@@ -976,6 +977,7 @@
This may call createEditor() internally to create the component.
*/
AudioProcessorEditor* createEditorIfNeeded();
+ #endif
//==============================================================================
/** Returns the default number of steps for a parameter.
@@ -1118,6 +1120,11 @@
virtual void processorLayoutsChanged();
//==============================================================================
+ /** LV2 specific calls, saving/restore as string. */
+ virtual String getStateInformationString () { return String(); }
+ virtual void setStateInformationString (const String&) {}
+
+ //==============================================================================
/** Adds a listener that will be called when an aspect of this processor changes. */
virtual void addListener (AudioProcessorListener* newListener);
@@ -1187,9 +1194,11 @@
virtual CurveData getResponseCurve (CurveData::Type /*curveType*/) const { return {}; }
+ #if ! JUCE_AUDIOPROCESSOR_NO_GUI
//==============================================================================
/** Not for public use - this is called before deleting an editor component. */
void editorBeingDeleted (AudioProcessorEditor*) noexcept;
+ #endif
/** Flags to indicate the type of plugin context in which a processor is being used. */
enum WrapperType
@@ -1203,6 +1212,7 @@
wrapperType_AAX,
wrapperType_Standalone,
wrapperType_Unity
+ , wrapperType_LV2
};
/** When loaded by a plugin wrapper, this flag will be set to indicate the type
@@ -1463,11 +1473,12 @@
//==============================================================================
Array<AudioProcessorListener*> listeners;
+ #if ! JUCE_AUDIOPROCESSOR_NO_GUI
Component::SafePointer<AudioProcessorEditor> activeEditor;
+ #endif
double currentSampleRate = 0;
int blockSize = 0, latencySamples = 0;
- bool suspended = false;
- std::atomic<bool> nonRealtime { false };
+ bool suspended = false, nonRealtime = false;
ProcessingPrecision processingPrecision = singlePrecision;
CriticalSection callbackLock, listenerLock, activeEditorLock;