Audio plugin host https://kx.studio/carla
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.

93 lines
2.8KB

  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. #ifndef DOXYGEN
  14. // Forward declaration to avoid leaking implementation details.
  15. namespace Steinberg
  16. {
  17. class FUnknown;
  18. using TUID = char[16];
  19. } // namespace Steinberg
  20. #endif
  21. namespace juce
  22. {
  23. /** An interface to allow an AudioProcessor to implement extended VST3-specific
  24. functionality.
  25. To use this class, ensure that your AudioProcessor publicly inherits
  26. from VST3ClientExtensions.
  27. @see VSTCallbackHandler
  28. @tags{Audio}
  29. */
  30. struct VST3ClientExtensions
  31. {
  32. virtual ~VST3ClientExtensions() = default;
  33. /** This function may be used by implementations of queryInterface()
  34. in the VST3's implementation of IEditController to return
  35. additional supported interfaces.
  36. */
  37. virtual int32_t queryIEditController (const Steinberg::TUID, void** obj)
  38. {
  39. *obj = nullptr;
  40. return -1;
  41. }
  42. /** This function may be used by implementations of queryInterface()
  43. in the VST3's implementation of IAudioProcessor to return
  44. additional supported interfaces.
  45. */
  46. virtual int32_t queryIAudioProcessor (const Steinberg::TUID, void** obj)
  47. {
  48. *obj = nullptr;
  49. return -1;
  50. }
  51. /** This may be called by the VST3 wrapper when the host sets an
  52. IComponentHandler for the plugin to use.
  53. You should not make any assumptions about how and when this will be
  54. called - this function may not be called at all!
  55. */
  56. virtual void setIComponentHandler (Steinberg::FUnknown*) {}
  57. /** This may be called shortly after the AudioProcessor is constructed
  58. with the current IHostApplication.
  59. You should not make any assumptions about how and when this will be
  60. called - this function may not be called at all!
  61. */
  62. virtual void setIHostApplication (Steinberg::FUnknown*) {}
  63. /** This function will be called to check whether the first input bus
  64. should be designated as "kMain" or "kAux". Return true if the
  65. first bus should be kMain, or false if the bus should be kAux.
  66. All other input buses will always be designated kAux.
  67. */
  68. virtual bool getPluginHasMainInput() const { return true; }
  69. };
  70. } // namespace juce