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.

165 lines
8.8KB

  1. JUCE breaking changes
  2. =====================
  3. Develop Branch
  4. ==============
  5. Change
  6. ------
  7. The option to set the C++ language standard is now located in the project settings instead of the build configuration settings.
  8. Possible Issues
  9. ---------------
  10. Projects that had a specific verison of the C++ language standard set for exporter build configurations will instead use the default (C++11) when re-saving with the new Projucer.
  11. Workaround
  12. ----------
  13. Change the "C++ Language Standard" setting in the main project settings to the required version - the Projucer will add this value to the exported project as a compiler flag when saving exporters.
  14. Rationale
  15. ---------
  16. Having a different C++ language standard option for each build configuration was unnecessary and was not fully implemented for all exporters. Changing it to a per-project settings means that the preference will propagate to all exporters and only needs to be set in one place.
  17. Change
  18. ------
  19. PopupMenus now scale according to the AffineTransform and scaling factor of their target components.
  20. Possible Issues
  21. ---------------
  22. Developers who have manually scaled their PopupMenus to fit the scaling factor of the parent UI will now have the scaling applied two times in a row.
  23. Workaround
  24. ----------
  25. 1. Do not apply your own manual scaling to make your popups match the UI scaling
  26. or
  27. 2. Override the Look&Feel method PopupMenu::LookAndFeelMethods::shouldPopupMenuScaleWithTargetComponent and return false.
  28. See https://github.com/WeAreROLI/JUCE/blob/c288c94c2914af20f36c03ca9c5401fcb555e4e9/modules/juce_gui_basics/menus/juce_PopupMenu.h#725
  29. Rationale
  30. ---------
  31. Previously, PopupMenus would not scale if the GUI of the target component (or any of it’s parents) were scaled. The only way to scale PopupMenus was via the global scaling factor. This had several drawbacks as the global scaling factor would scale everything. This was especially problematic in plug-in editors.
  32. Change
  33. ------
  34. Removed the setSecurityFlags() method from the Windows implementation of WebInputStream as it disabled HTTPS security features.
  35. Possible Issues
  36. ---------------
  37. Any code previously relying on connections to insecure webpages succeeding will no longer work.
  38. Workaround
  39. ----------
  40. Check network connectivity on Windows and re-write any code that relied on insecure connections.
  41. Rationale
  42. ---------
  43. The previous behaviour resulted in network connections on Windows having all the HTTPS security features disabled, exposing users to network attacks. HTTPS connections on Windows are now secure and will fail when connecting to an insecure web address.
  44. Change
  45. ------
  46. Pointer arithmetic on a pointer will have the same result regardless if it is wrapped in JUCE's Atomic class or not.
  47. Possible Issues
  48. ---------------
  49. Any code using pointer arithmetic on Atomic<T*> will now have a different result leading to undefined behaviour or crashes.
  50. Workaround
  51. ----------
  52. Re-write your code in a way that it does not depend on your pointer being wrapped in JUCE's Atomic or not. See rationale.
  53. Rationale
  54. ---------
  55. Before this change, pointer arithmetic with JUCE's Atomic type would yield confusing results. For example, the following code would assert before this change:
  56. int* a; Atomic<int*> b;
  57. jassert (++a == ++b);
  58. Pointer a in the above code would be advanced by sizeof(int) whereas the JUCE's Atomic always advances it's underlying pointer by a single byte. The same is true for operator+=/operator-= and operator--. The difference in behaviour is confusing and unintuitive. Furthermore, this aligns JUCE's Atomic type with std::atomic.
  59. Version 4.3.1
  60. =============
  61. Change
  62. ------
  63. JUCE has changed the way native VST3/AudioUnit parameter ids are calculated.
  64. Possible Issues
  65. ---------------
  66. DAW projects with automation data written by an AudioUnit or VST3 plug-in built with pre JUCE 4.3.1 versions will load incorrectly when opened by an AudioUnit or VST3 built with JUCE versions 4.3.1 and later. Plug-ins using JUCE_FORCE_USE_LEGACY_IDS are not affected.
  67. Workaround
  68. ----------
  69. Disable JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS in the juce_audio_plugin_client module config page in the Projucer. For new plug-ins, be sure to use the default value for this property.
  70. Rationale
  71. --------
  72. JUCE needs to convert between its own JUCE parameter id format (strings) to the native parameter id formats of the various plug-in backends. For VST3 and AudioUnits, JUCE uses a hash function to generate a numeric id. However, some VST3/AudioUnit hosts (specifically Studio One) have a bug that ignore any parameters that have a negative parameter id. Therefore, the hash function for VST3/AudioUnits needed to be changed to only return positive-valued hashes.
  73. Version 4.3.0
  74. =============
  75. Change
  76. ------
  77. A revised multi-bus API was released which supersedes the previously flawed multi-bus API - JUCE versions 4.0.0 - 4.2.4 (inclusive).
  78. Possible Issues
  79. ---------------
  80. If you have developed a plug-in with JUCE versions 4.0.0 - 4.2.4 (inclusive), then you will need to update your plug-in to the new multi-bus API. Pre JUCE 4.0.0 plug-ins are not affected apart from other breaking changes listed in this document.
  81. Woraround
  82. ---------
  83. None.
  84. Rationale
  85. --------
  86. A flawed multi-bus API was introduced with JUCE versions 4.0.0 up until version 4.2.4 (inclusive) which was not API compatible with pre JUCE 4 plug-ins. JUCE 4.3.0 releases a revised multi-bus API which restores pre JUCE 4 API compatibility. However, the new multi-bus API is not compatible with the flawed multi-bus API (JUCE version 4.0.0 - 4.2.4).
  87. Change
  88. ------
  89. JUCE now generates the AAX plug-in bus layout configuration id independent from the position as it appears in the Projucer’s legacy “Channel layout configuration” field.
  90. Possible Issues
  91. ---------------
  92. ProTools projects generated with a < 4.3.0 JUCE versions of your plug-in, may load the incorrect bus configuration when upgrading your plug-in to >= 4.3.0 versions of JUCE.
  93. Workaround
  94. ----------
  95. Implement AudioProcessor’s getAAXPluginIDForMainBusConfig callback to manually override which AAX plug-in id is associated to a specific bus layout of your plug-in. This workaround is only necessary if you have released your plug-in built with a version previous to JUCE 4.3.0.
  96. Rationale
  97. --------
  98. The new multi-bus API offers more features, flexibility and accuracy in specifying bus layouts which cannot be expressed by the Projucer’s legacy “Channel layout configuration” field. The native plug-in format backends use the new multi-bus callback APIs to negotiate channel layouts with the host - including the AAX plug-in ids assigned to specific bus layouts. With the callback API, there is no notion of an order in which the channel configurations appear - as was the case with the legacy “Channel layout configuration” field - and therefore cannot be used to generate the AAX plug-in id. To remain backward compatible to pre JUCE 4.0.0 plug-ins, JUCE does transparently convert the legacy “Channel layout configuration” field to the new callback based multi-bus API, but this does not take the order into account in which the channel configurations appear in the legacy “Channel layout configuration” field.
  99. Version 4.2.1
  100. =============
  101. Change
  102. ------
  103. JUCE now uses the paramID property used in AudioProcessorParameterWithID to uniquely identify parameters to the host.
  104. Possible Issues
  105. ---------------
  106. DAW projects with automation data written by an audio plug-in built with pre JUCE 4.2.1 will load incorrectly when opened by an audio plug-in built with JUCE 4.2.1 and later.
  107. Workaround
  108. ----------
  109. Enable JUCE_FORCE_USE_LEGACY_IDS in the juce_audio_plugin_client module config page in the Projucer. For new plug-ins, be sure to disable this property.
  110. Rationale
  111. --------
  112. Each parameter of the AudioProcessor has an id associated so that the plug-in’s host can uniquely identify parameters. The id has a different data-type for different plug-in types (for example VST uses integers, AAX uses string identifiers). Before 4.2.1, JUCE generated the parameter id by using the index of the parameter, i.e. the first parameter had id zero, the second parameter had id one, etc. This caused problems for certain plug-in types where JUCE needs to add internal parameters to the plug-in (for example VST3 requires the bypass control to be a parameter - so JUCE automatically creates this parameter for you in the VST3 backend). This causes subtle problems if a parameter is added to an update of an already published plug-in. The new parameter’s id would be identical to the id of the bypass parameter in old versions of your plug-in, causing seemingly random plug-in bypass behaviour when user’s upgrade their plug-in.
  113. Most plug-in backends differentiate between a parameter’s id an index, so this distinction was adopted starting with JUCE 4.2.1 by deriving the parameter’s unique id from the paramID property of AudioProcessorParameterWithID class.