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.

84 lines
3.2KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - 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 7 End-User License
  8. Agreement and JUCE Privacy Policy.
  9. End User License Agreement: www.juce.com/juce-7-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. namespace juce
  19. {
  20. /**
  21. An interface to allow an AudioProcessor to implement extended AAX-specific functionality.
  22. To use this class, create an object that inherits from it, implement the methods, then return
  23. a pointer to the object in your AudioProcessor `getAAXClientExtensions()` method.
  24. @see AudioProcessor, VST2ClientExtensions, VST3ClientExtensions
  25. @tags{Audio}
  26. */
  27. struct AAXClientExtensions
  28. {
  29. virtual ~AAXClientExtensions() = default;
  30. /** AAX plug-ins need to report a unique "plug-in id" for every audio layout
  31. configuration that your AudioProcessor supports on the main bus. Override this
  32. function if you want your AudioProcessor to use a custom "plug-in id" (for example
  33. to stay backward compatible with older versions of JUCE).
  34. The default implementation will compute a unique integer from the input and output
  35. layout and add this value to the 4 character code 'jcaa' (for native AAX) or 'jyaa'
  36. (for AudioSuite plug-ins).
  37. */
  38. virtual int32 getPluginIDForMainBusConfig (const AudioChannelSet& mainInputLayout,
  39. const AudioChannelSet& mainOutputLayout,
  40. bool idForAudioSuite) const;
  41. /** Returns an optional filename (including extension) for a page file to be used.
  42. A page file allows an AAX plugin to specify how its parameters are displayed on
  43. various control surfaces. For more information read the Page Table Guide in the
  44. AAX SDK documentation.
  45. By default this file will be searched for in `*.aaxplugin/Contents/Resources`.
  46. @see getPageFileSearchPath
  47. */
  48. virtual String getPageFileName() const;
  49. /** Optionally returns a search path for finding a page table file.
  50. This can be useful for specifying a location outside the plugin bundle so users can
  51. make changes to a page table file without breaking any code signatures.
  52. If this function returns a default-constructed File, then a default location will be used.
  53. The AAX SDK states this location will be `*.aaxplugin/Contents/Resources`.
  54. @note The returned path should be an absolute path to a directory.
  55. @see getPageFileName
  56. */
  57. virtual File getPageFileSearchPath() const { return {}; }
  58. };
  59. } // namespace juce