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.

434 lines
15KB

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