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.

132 lines
5.0KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 6 End-User License
  8. Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
  9. End User License Agreement: www.juce.com/juce-6-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. /*******************************************************************************
  19. The block below describes the properties of this module, and is read by
  20. the Projucer to automatically generate project code that uses it.
  21. For details about the syntax and how to create or use a module, see the
  22. JUCE Module Format.md file.
  23. BEGIN_JUCE_MODULE_DECLARATION
  24. ID: juce_audio_plugin_client
  25. vendor: juce
  26. version: 6.0.7
  27. name: JUCE audio plugin wrapper classes
  28. description: Classes for building VST, VST3, AudioUnit, AAX and RTAS plugins.
  29. website: http://www.juce.com/juce
  30. license: GPL/Commercial
  31. dependencies: juce_audio_processors
  32. END_JUCE_MODULE_DECLARATION
  33. *******************************************************************************/
  34. #pragma once
  35. #include <juce_gui_basics/juce_gui_basics.h>
  36. #include <juce_audio_basics/juce_audio_basics.h>
  37. #include <juce_audio_processors/juce_audio_processors.h>
  38. /** Config: JUCE_VST3_CAN_REPLACE_VST2
  39. Enable this if you want your VST3 plug-in to load and save VST2 compatible
  40. state. This allows hosts to replace VST2 plug-ins with VST3 plug-ins. If
  41. you change this option then your VST3 plug-in will be incompatible with
  42. previous versions.
  43. */
  44. #ifndef JUCE_VST3_CAN_REPLACE_VST2
  45. #define JUCE_VST3_CAN_REPLACE_VST2 1
  46. #endif
  47. /** Config: JUCE_FORCE_USE_LEGACY_PARAM_IDS
  48. Enable this if you want to force JUCE to use a continuous parameter
  49. index to identify a parameter in a DAW (this was the default in old
  50. versions of JUCE). This is index is usually used by the DAW to save
  51. automation data and enabling this may mess up user's DAW projects.
  52. */
  53. #ifndef JUCE_FORCE_USE_LEGACY_PARAM_IDS
  54. #define JUCE_FORCE_USE_LEGACY_PARAM_IDS 0
  55. #endif
  56. /** Config: JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE
  57. Enable this if you want to force JUCE to use a legacy scheme for
  58. identifying plug-in parameters as either continuous or discrete.
  59. DAW projects with automation data written by an AudioUnit, VST3 or
  60. AAX plug-in built with JUCE version 5.1.1 or earlier may load
  61. incorrectly when opened by an AudioUnit, VST3 or AAX plug-in built
  62. with JUCE version 5.2.0 and later.
  63. */
  64. #ifndef JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE
  65. #define JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE 0
  66. #endif
  67. /** Config: JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS
  68. Enable this if you want JUCE to use parameter ids which are compatible
  69. with Studio One, as Studio One ignores any parameter ids which are negative.
  70. Enabling this option will make JUCE generate only positive parameter ids.
  71. Note that if you have already released a plug-in prior to JUCE 4.3.0 then
  72. enabling this will change your parameter ids, making your plug-in
  73. incompatible with old automation data.
  74. */
  75. #ifndef JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS
  76. #define JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS 1
  77. #endif
  78. /** Config: JUCE_AU_WRAPPERS_SAVE_PROGRAM_STATES
  79. Enable this if you want to receive get/setProgramStateInformation calls,
  80. instead of get/setStateInformation calls, from the AU and AUv3 plug-in
  81. wrappers. In JUCE version 5.4.5 and earlier this was the default behaviour,
  82. so if you have modified the default implementations of get/setProgramStateInformation
  83. (where the default implementations simply call through to get/setStateInformation)
  84. then you may need to enable this configuration option to maintain backwards
  85. compatibility with previously saved state.
  86. */
  87. #ifndef JUCE_AU_WRAPPERS_SAVE_PROGRAM_STATES
  88. #define JUCE_AU_WRAPPERS_SAVE_PROGRAM_STATES 0
  89. #endif
  90. /** Config: JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE
  91. Enable this if you want your standalone plugin window to use kiosk mode.
  92. By default, kiosk mode is enabled on iOS and Android.
  93. */
  94. #ifndef JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE
  95. #define JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE (JUCE_IOS || JUCE_ANDROID)
  96. #endif
  97. #include "utility/juce_PluginHostType.h"
  98. #include "utility/juce_CreatePluginFilter.h"
  99. #include "VST/juce_VSTCallbackHandler.h"