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.

359 lines
12KB

  1. JUCE breaking changes
  2. =====================
  3. Develop Branch
  4. =============
  5. Change
  6. ------
  7. The method used to classify AudioUnit, VST3 and AAX plug-in parameters as
  8. either continuous or discrete has changed, and AudioUnit and AudioUnit v3
  9. parameters are marked as high precision by default.
  10. Possible Issues
  11. ---------------
  12. Plug-ins: DAW projects with automation data written by an AudioUnit, AudioUnit
  13. v3 VST3 or AAX plug-in built with JUCE version 5.1.1 or earlier may load
  14. incorrectly when opened by an AudioUnit, AudioUnit v3, VST3 or AAX plug-in
  15. built with JUCE version 5.2.0 and later.
  16. Hosts: The AudioPluginInstance::getParameterNumSteps method now returns correct
  17. values for AU and VST3 plug-ins.
  18. Workaround
  19. ----------
  20. Plug-ins: Enable JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE in the
  21. juce_audio_plugin_client module config page in the Projucer.
  22. Hosts: Use AudioPluginInstance::getDefaultNumParameterSteps as the number of
  23. steps for all parameters.
  24. Rationale
  25. ---------
  26. The old system for presenting plug-in parameters to a host as either continuous
  27. or discrete is inconsistent between plug-in types and lacks sufficient
  28. flexibility. This change harmonises the behaviour and allows individual
  29. parameters to be marked as continuous or discrete. If AudioUnit and AudioUnit
  30. v3 parameters are not marked as high precision then hosts like Logic Pro only
  31. offer a limited number of parameter values, which again produces different
  32. behaviour for different plug-in types.
  33. Change
  34. ------
  35. A new FrameRateType fps23976 has been added to AudioPlayHead,
  36. Possible Issues
  37. ---------------
  38. Previously JUCE would report the FrameRateType fps24 for both 24 and 23.976
  39. fps. If your code uses switch statements (or similar) to handle all possible
  40. frame rate types, then this change may cause it to fall through.
  41. Workaround
  42. ----------
  43. Add fps23976 to your switch statement and handle it appropriately.
  44. Rationale
  45. ---------
  46. JUCE should be able to handle all popular frame rate codes but was missing
  47. support for 23.976.
  48. Change
  49. ------
  50. The String (bool) constructor and operator<< (String&, bool) have been
  51. explicitly deleted.
  52. Possible Issues
  53. ---------------
  54. Previous code which relied on an implicit bool to int type conversion to
  55. produce a String will not compile.
  56. Workaround
  57. ----------
  58. Cast your bool to an integer to generate a string representation of it.
  59. Rationale
  60. ---------
  61. Letting things implicitly convert to bool to produce a String opens the door to
  62. all kinds of nasty type conversion edge cases. Furthermore, before this change,
  63. MacOS would automatically convert bools to ints but this wouldn't occur on
  64. different platform. Now the behaviour is consistent across all operating
  65. systems supported by JUCE.
  66. Change
  67. ------
  68. The writeAsJSON virtual method of the DynamicObject class requires an
  69. additional parameter, maximumDecimalPlaces, to specify the maximum precision of
  70. floating point numbers.
  71. Possible Issues
  72. ---------------
  73. Classes which inherit from DynamicObject and override this method will need to
  74. update their method signature.
  75. Workaround
  76. ----------
  77. Your custom DynamicObject class can choose to ignore the additional parameter
  78. if you don't wish to support this behaviour.
  79. Rationale
  80. ---------
  81. When serialising the results of calculations to JSON the rounding of floating
  82. point numbers can result in numbers with 17 significant figures where only a
  83. few are required. This change to DynamicObject is required to support
  84. truncating those numbers.
  85. Version 5.1.0
  86. =============
  87. Change
  88. ------
  89. The option to set the C++ language standard is now located in the project
  90. settings instead of the build configuration settings.
  91. Possible Issues
  92. ---------------
  93. Projects that had a specific verison of the C++ language standard set for
  94. exporter build configurations will instead use the default (C++11) when
  95. re-saving with the new Projucer.
  96. Workaround
  97. ----------
  98. Change the "C++ Language Standard" setting in the main project settings to the
  99. required version - the Projucer will add this value to the exported project as
  100. a compiler flag when saving exporters.
  101. Rationale
  102. ---------
  103. Having a different C++ language standard option for each build configuration
  104. was unnecessary and was not fully implemented for all exporters. Changing it to
  105. a per-project settings means that the preference will propagate to all
  106. exporters and only needs to be set in one place.
  107. Change
  108. ------
  109. PopupMenus now scale according to the AffineTransform and scaling factor of
  110. their target components.
  111. Possible Issues
  112. ---------------
  113. Developers who have manually scaled their PopupMenus to fit the scaling factor
  114. of the parent UI will now have the scaling applied two times in a row.
  115. Workaround
  116. ----------
  117. 1. Do not apply your own manual scaling to make your popups match the UI
  118. scaling
  119. or
  120. 2. Override the Look&Feel method
  121. PopupMenu::LookAndFeelMethods::shouldPopupMenuScaleWithTargetComponent and
  122. return false. See
  123. https://github.com/WeAreROLI/JUCE/blob/c288c94c2914af20f36c03ca9c5401fcb555e4e9/modules/juce_gui_basics/menus/juce_PopupMenu.h#725
  124. Rationale
  125. ---------
  126. Previously, PopupMenus would not scale if the GUI of the target component (or
  127. any of it’s parents) were scaled. The only way to scale PopupMenus was via the
  128. global scaling factor. This had several drawbacks as the global scaling factor
  129. would scale everything. This was especially problematic in plug-in editors.
  130. Change
  131. ------
  132. Removed the setSecurityFlags() method from the Windows implementation of
  133. WebInputStream as it disabled HTTPS security features.
  134. Possible Issues
  135. ---------------
  136. Any code previously relying on connections to insecure webpages succeeding will
  137. no longer work.
  138. Workaround
  139. ----------
  140. Check network connectivity on Windows and re-write any code that relied on
  141. insecure connections.
  142. Rationale
  143. ---------
  144. The previous behaviour resulted in network connections on Windows having all
  145. the HTTPS security features disabled, exposing users to network attacks. HTTPS
  146. connections on Windows are now secure and will fail when connecting to an
  147. insecure web address.
  148. Change
  149. ------
  150. Pointer arithmetic on a pointer will have the same result regardless if it is
  151. wrapped in JUCE's Atomic class or not.
  152. Possible Issues
  153. ---------------
  154. Any code using pointer arithmetic on Atomic<T*> will now have a different
  155. result leading to undefined behaviour or crashes.
  156. Workaround
  157. ----------
  158. Re-write your code in a way that it does not depend on your pointer being
  159. wrapped in JUCE's Atomic or not. See rationale.
  160. Rationale
  161. ---------
  162. Before this change, pointer arithmetic with JUCE's Atomic type would yield
  163. confusing results. For example, the following code would assert before this
  164. change:
  165. int* a; Atomic<int*> b;
  166. jassert (++a == ++b);
  167. Pointer a in the above code would be advanced by sizeof(int) whereas the JUCE's
  168. Atomic always advances it's underlying pointer by a single byte. The same is
  169. true for operator+=/operator-= and operator--. The difference in behaviour is
  170. confusing and unintuitive. Furthermore, this aligns JUCE's Atomic type with
  171. std::atomic.
  172. Version 4.3.1
  173. =============
  174. Change
  175. ------
  176. JUCE has changed the way native VST3/AudioUnit parameter ids are calculated.
  177. Possible Issues
  178. ---------------
  179. DAW projects with automation data written by an AudioUnit or VST3 plug-in built
  180. with pre JUCE 4.3.1 versions will load incorrectly when opened by an AudioUnit
  181. or VST3 built with JUCE versions 4.3.1 and later. Plug-ins using
  182. JUCE_FORCE_USE_LEGACY_PARAM_IDS are not affected.
  183. Workaround
  184. ----------
  185. Disable JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS in the
  186. juce_audio_plugin_client module config page in the Projucer. For new plug-ins,
  187. be sure to use the default value for this property.
  188. Rationale
  189. --------
  190. JUCE needs to convert between its own JUCE parameter id format (strings) to the
  191. native parameter id formats of the various plug-in backends. For VST3 and
  192. AudioUnits, JUCE uses a hash function to generate a numeric id. However, some
  193. VST3/AudioUnit hosts (specifically Studio One) have a bug that ignore any
  194. parameters that have a negative parameter id. Therefore, the hash function for
  195. VST3/AudioUnits needed to be changed to only return positive-valued hashes.
  196. Version 4.3.0
  197. =============
  198. Change
  199. ------
  200. A revised multi-bus API was released which supersedes the previously flawed
  201. multi-bus API - JUCE versions 4.0.0 - 4.2.4 (inclusive).
  202. Possible Issues
  203. ---------------
  204. If you have developed a plug-in with JUCE versions 4.0.0 - 4.2.4 (inclusive),
  205. then you will need to update your plug-in to the new multi-bus API. Pre JUCE
  206. 4.0.0 plug-ins are not affected apart from other breaking changes listed in
  207. this document.
  208. Woraround
  209. ---------
  210. None.
  211. Rationale
  212. --------
  213. A flawed multi-bus API was introduced with JUCE versions 4.0.0 up until version
  214. 4.2.4 (inclusive) which was not API compatible with pre JUCE 4 plug-ins. JUCE
  215. 4.3.0 releases a revised multi-bus API which restores pre JUCE 4 API
  216. compatibility. However, the new multi-bus API is not compatible with the flawed
  217. multi-bus API (JUCE version 4.0.0 - 4.2.4).
  218. Change
  219. ------
  220. JUCE now generates the AAX plug-in bus layout configuration id independent from
  221. the position as it appears in the Projucer’s legacy "Channel layout
  222. configuration" field.
  223. Possible Issues
  224. ---------------
  225. ProTools projects generated with a < 4.3.0 JUCE versions of your plug-in, may
  226. load the incorrect bus configuration when upgrading your plug-in to >= 4.3.0
  227. versions of JUCE.
  228. Workaround
  229. ----------
  230. Implement AudioProcessor’s getAAXPluginIDForMainBusConfig callback to manually
  231. override which AAX plug-in id is associated to a specific bus layout of your
  232. plug-in. This workaround is only necessary if you have released your plug-in
  233. built with a version previous to JUCE 4.3.0.
  234. Rationale
  235. --------
  236. The new multi-bus API offers more features, flexibility and accuracy in
  237. specifying bus layouts which cannot be expressed by the Projucer’s legacy
  238. "Channel layout configuration" field. The native plug-in format backends use
  239. the new multi-bus callback APIs to negotiate channel layouts with the host -
  240. including the AAX plug-in ids assigned to specific bus layouts. With the
  241. callback API, there is no notion of an order in which the channel
  242. configurations appear - as was the case with the legacy "Channel layout
  243. configuration" field - and therefore cannot be used to generate the AAX plug-in
  244. id. To remain backward compatible to pre JUCE 4.0.0 plug-ins, JUCE does
  245. transparently convert the legacy "Channel layout configuration" field to the
  246. new callback based multi-bus API, but this does not take the order into account
  247. in which the channel configurations appear in the legacy "Channel layout
  248. configuration" field.
  249. Version 4.2.1
  250. =============
  251. Change
  252. ------
  253. JUCE now uses the paramID property used in AudioProcessorParameterWithID to
  254. uniquely identify parameters to the host.
  255. Possible Issues
  256. ---------------
  257. DAW projects with automation data written by an audio plug-in built with pre
  258. JUCE 4.2.1 will load incorrectly when opened by an audio plug-in built with
  259. JUCE 4.2.1 and later.
  260. Workaround
  261. ----------
  262. Enable JUCE_FORCE_USE_LEGACY_PARAM_IDS in the juce_audio_plugin_client module config
  263. page in the Projucer. For new plug-ins, be sure to disable this property.
  264. Rationale
  265. --------
  266. Each parameter of the AudioProcessor has an id associated so that the plug-in’s
  267. host can uniquely identify parameters. The id has a different data-type for
  268. different plug-in types (for example VST uses integers, AAX uses string
  269. identifiers). Before 4.2.1, JUCE generated the parameter id by using the index
  270. of the parameter, i.e. the first parameter had id zero, the second parameter
  271. had id one, etc. This caused problems for certain plug-in types where JUCE
  272. needs to add internal parameters to the plug-in (for example VST3 requires the
  273. bypass control to be a parameter - so JUCE automatically creates this parameter
  274. for you in the VST3 backend). This causes subtle problems if a parameter is
  275. added to an update of an already published plug-in. The new parameter’s id
  276. would be identical to the id of the bypass parameter in old versions of your
  277. plug-in, causing seemingly random plug-in bypass behaviour when user’s upgrade
  278. their plug-in.
  279. Most plug-in backends differentiate between a parameter’s id an index, so this
  280. distinction was adopted starting with JUCE 4.2.1 by deriving the parameter’s
  281. unique id from the paramID property of AudioProcessorParameterWithID class.