The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

178 lines
7.2KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 7 technical preview.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For the technical preview this file cannot be licensed commercially.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. /*******************************************************************************
  14. The block below describes the properties of this module, and is read by
  15. the Projucer to automatically generate project code that uses it.
  16. For details about the syntax and how to create or use a module, see the
  17. JUCE Module Format.md file.
  18. BEGIN_JUCE_MODULE_DECLARATION
  19. ID: juce_audio_processors
  20. vendor: juce
  21. version: 6.1.6
  22. name: JUCE audio processor classes
  23. description: Classes for loading and playing VST, AU, LADSPA, or internally-generated audio processors.
  24. website: http://www.juce.com/juce
  25. license: GPL/Commercial
  26. minimumCppStandard: 14
  27. dependencies: juce_gui_extra, juce_audio_basics
  28. OSXFrameworks: CoreAudio CoreMIDI AudioToolbox
  29. iOSFrameworks: AudioToolbox
  30. END_JUCE_MODULE_DECLARATION
  31. *******************************************************************************/
  32. #pragma once
  33. #define JUCE_AUDIO_PROCESSORS_H_INCLUDED
  34. #include <juce_gui_basics/juce_gui_basics.h>
  35. #include <juce_audio_basics/juce_audio_basics.h>
  36. //==============================================================================
  37. /** Config: JUCE_PLUGINHOST_VST
  38. Enables the VST audio plugin hosting classes. You will need to have the VST2 SDK files in your header search paths. You can obtain the VST2 SDK files from on older version of the VST3 SDK.
  39. @see VSTPluginFormat, VST3PluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_AU, JUCE_PLUGINHOST_VST3, JUCE_PLUGINHOST_LADSPA
  40. */
  41. #ifndef JUCE_PLUGINHOST_VST
  42. #define JUCE_PLUGINHOST_VST 0
  43. #endif
  44. /** Config: JUCE_PLUGINHOST_VST3
  45. Enables the VST3 audio plugin hosting classes.
  46. @see VSTPluginFormat, VST3PluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_AU, JUCE_PLUGINHOST_LADSPA
  47. */
  48. #ifndef JUCE_PLUGINHOST_VST3
  49. #define JUCE_PLUGINHOST_VST3 0
  50. #endif
  51. /** Config: JUCE_PLUGINHOST_AU
  52. Enables the AudioUnit plugin hosting classes. This is Mac-only, of course.
  53. @see AudioUnitPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_VST3, JUCE_PLUGINHOST_LADSPA
  54. */
  55. #ifndef JUCE_PLUGINHOST_AU
  56. #define JUCE_PLUGINHOST_AU 0
  57. #endif
  58. /** Config: JUCE_PLUGINHOST_LADSPA
  59. Enables the LADSPA plugin hosting classes. This is Linux-only, of course.
  60. @see LADSPAPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_VST3, JUCE_PLUGINHOST_AU
  61. */
  62. #ifndef JUCE_PLUGINHOST_LADSPA
  63. #define JUCE_PLUGINHOST_LADSPA 0
  64. #endif
  65. /** Config: JUCE_PLUGINHOST_LV2
  66. Enables the LV2 plugin hosting classes.
  67. */
  68. #ifndef JUCE_PLUGINHOST_LV2
  69. #define JUCE_PLUGINHOST_LV2 0
  70. #endif
  71. /** Config: JUCE_PLUGINHOST_ARA
  72. Enables the ARA plugin extension hosting classes. You will need to download the ARA SDK and specify the
  73. path to it either in the Projucer, using juce_set_ara_sdk_path() in your CMake project file.
  74. The directory can be obtained by recursively cloning https://github.com/Celemony/ARA_SDK and checking out
  75. the tag releases/2.1.0.
  76. */
  77. #ifndef JUCE_PLUGINHOST_ARA
  78. #define JUCE_PLUGINHOST_ARA 0
  79. #endif
  80. /** Config: JUCE_CUSTOM_VST3_SDK
  81. If enabled, the embedded VST3 SDK in JUCE will not be added to the project and instead you should
  82. add the path to your custom VST3 SDK to the project's header search paths. Most users shouldn't
  83. need to enable this and should just use the version of the SDK included with JUCE.
  84. */
  85. #ifndef JUCE_CUSTOM_VST3_SDK
  86. #define JUCE_CUSTOM_VST3_SDK 0
  87. #endif
  88. #if ! (JUCE_PLUGINHOST_AU || JUCE_PLUGINHOST_VST || JUCE_PLUGINHOST_VST3 || JUCE_PLUGINHOST_LADSPA)
  89. // #error "You need to set either the JUCE_PLUGINHOST_AU and/or JUCE_PLUGINHOST_VST and/or JUCE_PLUGINHOST_VST3 and/or JUCE_PLUGINHOST_LADSPA flags if you're using this module!"
  90. #endif
  91. #ifndef JUCE_SUPPORT_LEGACY_AUDIOPROCESSOR
  92. #define JUCE_SUPPORT_LEGACY_AUDIOPROCESSOR 1
  93. #endif
  94. //==============================================================================
  95. #include "utilities/juce_VSTCallbackHandler.h"
  96. #include "utilities/juce_VST3ClientExtensions.h"
  97. #include "utilities/juce_NativeScaleFactorNotifier.h"
  98. #include "format_types/juce_ARACommon.h"
  99. #include "utilities/juce_ExtensionsVisitor.h"
  100. #include "processors/juce_AudioProcessorParameter.h"
  101. #include "processors/juce_HostedAudioProcessorParameter.h"
  102. #include "processors/juce_AudioProcessorEditorHostContext.h"
  103. #include "processors/juce_AudioProcessorEditor.h"
  104. #include "processors/juce_AudioProcessorListener.h"
  105. #include "processors/juce_AudioProcessorParameterGroup.h"
  106. #include "processors/juce_AudioProcessor.h"
  107. #include "processors/juce_PluginDescription.h"
  108. #include "processors/juce_AudioPluginInstance.h"
  109. #include "processors/juce_AudioProcessorGraph.h"
  110. #include "processors/juce_GenericAudioProcessorEditor.h"
  111. #include "format/juce_AudioPluginFormat.h"
  112. #include "format/juce_AudioPluginFormatManager.h"
  113. #include "scanning/juce_KnownPluginList.h"
  114. #include "format_types/juce_AudioUnitPluginFormat.h"
  115. #include "format_types/juce_LADSPAPluginFormat.h"
  116. #include "format_types/juce_LV2PluginFormat.h"
  117. #include "format_types/juce_VST3PluginFormat.h"
  118. #include "format_types/juce_VSTMidiEventList.h"
  119. #include "format_types/juce_VSTPluginFormat.h"
  120. #include "format_types/juce_ARAHosting.h"
  121. #include "scanning/juce_PluginDirectoryScanner.h"
  122. #include "scanning/juce_PluginListComponent.h"
  123. #include "utilities/juce_AudioProcessorParameterWithID.h"
  124. #include "utilities/juce_RangedAudioParameter.h"
  125. #include "utilities/juce_AudioParameterFloat.h"
  126. #include "utilities/juce_AudioParameterInt.h"
  127. #include "utilities/juce_AudioParameterBool.h"
  128. #include "utilities/juce_AudioParameterChoice.h"
  129. #include "utilities/juce_ParameterAttachments.h"
  130. #include "utilities/juce_AudioProcessorValueTreeState.h"
  131. #include "utilities/juce_PluginHostType.h"
  132. #include "utilities/ARA/juce_ARA_utils.h"
  133. //==============================================================================
  134. // These declarations are here to avoid missing-prototype warnings in user code.
  135. // If you're implementing a plugin, you should supply a body for
  136. // this function in your own code.
  137. juce::AudioProcessor* JUCE_CALLTYPE createPluginFilter();
  138. // If you are implementing an ARA enabled plugin, you need to
  139. // implement this function somewhere in the codebase by returning
  140. // SubclassOfARADocumentControllerSpecialisation::createARAFactory<SubclassOfARADocumentControllerSpecialisation>();
  141. #if JucePlugin_Enable_ARA
  142. const ARA::ARAFactory* JUCE_CALLTYPE createARAFactory();
  143. #endif