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.

951 lines
31KB

  1. JUCE breaking changes
  2. =====================
  3. Develop
  4. =======
  5. Change
  6. -----
  7. Allow renaming and deletion of open file handles on Windows using the
  8. FILE_SHARE_DELETE flag.
  9. Possible Issues
  10. ---------------
  11. Previous code that relied on open files not being able to be renamed or
  12. deleted on Windows may fail.
  13. Workaround
  14. ----------
  15. No workaround.
  16. Rationale
  17. ---------
  18. This unifies the behaviour across OSes as POSIX systems already allow
  19. this.
  20. Change
  21. -----
  22. Multiple changes to low-level, non-public JNI and Android APIs.
  23. Possible Issues
  24. ---------------
  25. If you were using any non-public, low-level JNI macros, calling java code or
  26. recieving JNI callbacks, then your code will probably no longer work. See the
  27. forum for further details.
  28. Workaround
  29. ----------
  30. See the forum for further details.
  31. Rationale
  32. ---------
  33. See the forum for further details.
  34. Change
  35. -----
  36. The minimum Android version for a JUCE app is now Android 4.1
  37. Possible Issues
  38. ---------------
  39. Your app may not run on very old versions of Android (less than 0.5% of the
  40. devices).
  41. Workaround
  42. ----------
  43. There is no workaround.
  44. Rationale
  45. ---------
  46. Less than 0.5% of all devices in the world run versions of Android older than
  47. Android 4.1. In the interest of keeping JUCE code clean and lean, we must
  48. depricate support for very old Android versions from time to time.
  49. Version 5.4.0
  50. =============
  51. Change
  52. ------
  53. The use of WinRT MIDI functions has been disabled by default for any version
  54. of Windows 10 before 1809 (October 2018 Update).
  55. Possible Issues
  56. ---------------
  57. If you were previously using WinRT MIDI functions on older versions of Windows
  58. then the new behaviour is to revert to the old Win32 MIDI API.
  59. Workaround
  60. ----------
  61. Set the preprocessor macro JUCE_FORCE_WINRT_MIDI=1 (in addition to the
  62. previously selected JUCE_USE_WINRT_MIDI=1) to allow the use of the WinRT API on
  63. older versions of Windows.
  64. Rationale
  65. ---------
  66. Until now JUCE's support for the Windows 10 WinRT MIDI API was experimental,
  67. due to longstanding issues within the API itself. These issues have been
  68. addressed in the Windows 10 1809 (October 2018 Update) release.
  69. Change
  70. ------
  71. The VST2 SDK embedded within JUCE has been removed.
  72. Possible Issues
  73. ---------------
  74. 1. Building or hosting VST2 plug-ins requires header files from the VST2 SDK,
  75. which is no longer part of JUCE.
  76. 2. Building a VST2-compatible VST3 plug-in (the previous default behaviour in
  77. JUCE) requires header files from the VST2 SDK, which is no longer part of
  78. JUCE.
  79. Workaround
  80. ----------
  81. 1. The VST2 SDK can be obtained from the vstsdk3610_11_06_2018_build_37 (or
  82. older) VST3 SDK or JUCE version 5.3.2. You should put the VST2 SDK in your
  83. header search paths or use the "VST (Legacy) SDK Folder" fields in the
  84. Projucer.
  85. 2. For new plug-in projects where you will be releasing both a VST2 and VST3
  86. version, and you want the VST3 plug-in to replace the VST2 plug-in in
  87. hosts that support it, then you should enable the JUCE_VST3_CAN_REPLACE_VST2
  88. option.
  89. 3. When a new JUCE plug-in project is created the value of
  90. JUCE_VST3_CAN_REPLACE_VST2 will be set to zero.
  91. Rationale
  92. ---------
  93. Distributing VST2 plug-ins requires a VST2 license from Steinberg. Following
  94. Steinberg's removal of the VST2 SDK from their public SDKs we are also removing
  95. the VST2 SDK from the JUCE codebase.
  96. Change
  97. ------
  98. The AudioProcessorValueTreeState::createAndAddParameter function has been
  99. deprecated.
  100. Possible Issues
  101. ---------------
  102. Deprecation warnings will be seen when compiling code which uses this function
  103. and eventually builds will fail when it is later removed from the API.
  104. Workaround
  105. ----------
  106. Previous calls to
  107. createAndAddParameter (paramID, paramName, ...);
  108. can be directly replaced with
  109. using Parameter = AudioProcessorValueTreeState::Parameter;
  110. createAndAddParameter (std::make_unique<Parameter> (paramID, paramName, ...));
  111. but an even better approach is to use the new AudioProcessorValueTreeState
  112. constructor where you can pass both RangedAudioParameters and
  113. AudioProcessorParameterGroups of RangedAudioParameters to the
  114. AudioProcessorValueTreeState and initialise the ValueTree simultaneously.
  115. Rationale
  116. ---------
  117. The new createAndAddParameter method is much more flexible and enables any
  118. parameter types derived from RangedAudioParameter to be managed by the
  119. AudioProcessorValueTreeState.
  120. Change
  121. ------
  122. The Projucer's per-exporter Android SDK/NDK path options have been removed.
  123. Possible Issues
  124. ---------------
  125. Projects that previously used these fields may no longer build.
  126. Workaround
  127. ----------
  128. Use the Projucer's global paths settings to point to these directories, either
  129. by opening the "Projucer/File->Global Paths..." menu item or using the
  130. "--set-global-search-path" command-line option.
  131. Rationale
  132. ---------
  133. Having multiple places where the paths could be set was confusing and could
  134. cause unexpected mismatches.
  135. Change
  136. ------
  137. SystemStats::getDeviceDescription() will now return the device code on iOS e.g.
  138. "iPhone7, 2" for an iPhone 6 instead of just "iPhone".
  139. Possible Issues
  140. ---------------
  141. Code that previously relied on this method returning either explicitly "iPhone"
  142. or "iPad" may no longer work.
  143. Workaround
  144. ----------
  145. Modify this code to handle the new device code string e.g. by changing:
  146. SystemStats::getDeviceDescription() == "iPhone";
  147. to
  148. SystemStats::getDeviceDescription().contains ("iPhone");.
  149. Rationale
  150. ---------
  151. The exact device model can now be deduced from this information instead of just
  152. the device family.
  153. Change
  154. ------
  155. DragAndDropContainer::performExternalDragDropOfFiles() and
  156. ::performExternalDragDropOfText() are now asynchronous on Windows.
  157. Possible Issues
  158. ---------------
  159. Code that previously relied on these operations being synchronous and blocking
  160. until completion will no longer work as the methods will return immediately and
  161. run asynchronously.
  162. Workaround
  163. ----------
  164. Use the callback argument that has been added to these methods to register a
  165. lambda that will be called when the operation has been completed.
  166. Rationale
  167. ---------
  168. The behaviour of these methods is now consistent across all platforms and the
  169. method no longer blocks the message thread on Windows.
  170. Change
  171. ------
  172. AudioProcessor::getTailLengthSeconds can now return infinity for
  173. VST/VST3/AU/AUv3.
  174. Possible Issues
  175. ---------------
  176. If you are using the result of getTailLengthSeconds to allocate a buffer in
  177. your host, then your host will now likely crash when loading a plug-in with an
  178. infinite tail time.
  179. Workaround
  180. ----------
  181. Rewrite your code to not use the result of getTailLengthSeconds directly to
  182. allocate a buffer.
  183. Rationale
  184. ---------
  185. Before this change there was no way for a JUCE plug-in to report an infinite
  186. tail time.
  187. Version 5.3.2
  188. =============
  189. Change
  190. ------
  191. The behaviour of an UndoManager used by an AudioProcessorValueTreeState has
  192. been improved.
  193. Possible Issues
  194. ---------------
  195. If your plug-in contains an UndoManager used by an AudioProcessorValueTreeState
  196. and relies upon the old behaviour of the UndoManager then it is possible that
  197. the new behaviour is no longer appropriate for your use case.
  198. Workaround
  199. ----------
  200. Use an external UndoManager to reproduce the old behaviour manually.
  201. Rationale
  202. ---------
  203. This change fixes a few bugs in the behaviour of an UndoManager used by an
  204. AudioProcessorValueTreeState.
  205. Change
  206. ------
  207. JUCE no longer supports OS X deployment targets earlier than 10.7.
  208. Possible Issues
  209. ---------------
  210. If you were previously targeting OS X 10.5 or 10.6 you will no longer be able
  211. to build JUCE-based products compatible with those platforms.
  212. Workaround
  213. ----------
  214. None. With the appropriate JUCE licence you may be able to backport new JUCE
  215. features, but there will be no official support for this.
  216. Rationale
  217. ---------
  218. Increasing the minimum supported OS X version allows the JUCE codebase to make
  219. use of the more modern C++ features found in the 10.7 standard library, which
  220. in turn will increase thread and memory safety.
  221. Version 5.3.0
  222. =============
  223. Change
  224. ------
  225. The JUCE examples have been cleaned up, modernised and converted into PIPs
  226. (Projucer Instant Projects). The JUCE Demo has been removed and replaced by the
  227. DemoRunner application and larger projects such as the Audio Plugin Host and
  228. the Network Graphics Demo have been moved into the extras directory.
  229. Possible Issues
  230. ---------------
  231. 1. Due to the large number of changes that have occurred in the JUCE Git
  232. repository, pulling this version may result in a messy folder structure with
  233. empty directories that have been removed.
  234. 2. The JUCE Demo project is no longer in the JUCE repository.
  235. 3. The Audio Plugin Host project has moved from the examples directory to the
  236. extras directory.
  237. Workaround
  238. ----------
  239. 1. Run a Git clean command (git clean -xdf) in your JUCE directory to remove
  240. all untracked files, directories and build products.
  241. 2. The new DemoRunner application, located in extras/DemoRunner, can be used to
  242. preview all the JUCE examples and see the code side-by-side.
  243. 3. Change any file paths that depended on the plugin host project being located
  244. in the examples directory to use the extras directory instead.
  245. Rationale
  246. ---------
  247. The JUCE examples had inconsistent naming, coding styles and the projects and
  248. build products took up a large amount of space in the repository. Replacing
  249. them with PIPs reduces the file size and allows us to categorise the examples
  250. better, as well as cleaning up the code.
  251. Change
  252. ------
  253. When hosting plug-ins all AudioProcessor methods of managing parameters that
  254. take a parameter index as an argument have been deprecated.
  255. Possible Issues
  256. ---------------
  257. A single assertion will be fired in debug builds on the first use of a
  258. deprecated function.
  259. Workaround
  260. ----------
  261. When hosting plug-ins you should use the AudioProcessor::getParameters() method
  262. and interact with parameters via the returned array of
  263. AudioProcessorParameters. For a short-term fix you can also continue past the
  264. assertion in your debugger, or temporarily modify the JUCE source code to
  265. remove it.
  266. Rationale
  267. ---------
  268. Given the structure of JUCE's API it is impossible to deprecate these functions
  269. using only compile-time messages. Therefore a single assertion, which can be
  270. safely ignored, serves to indicate that these functions should no longer be
  271. used. The move away from the AudioProcessor methods both improves the interface
  272. to that class and makes ongoing development work much easier.
  273. Change
  274. ------
  275. This InAppPurchases class is now a JUCE Singleton. This means that you need
  276. to get an instance via InAppPurchases::getInstance(), instead of storing a
  277. InAppPurchases object yourself.
  278. Possible Issues
  279. ---------------
  280. Any code using InAppPurchases needs to be updated to retrieve a singleton
  281. pointer to InAppPurchases.
  282. Workaround
  283. ----------
  284. Instead of holding a InAppPurchase member yourself, you should get an instance
  285. via InAppPurchases::getInstance(), e.g.
  286. instead of:
  287. InAppPurchases iap;
  288. iap.purchaseProduct (...);
  289. call:
  290. InAppPurchases::getInstance()->purchaseProduct (...);
  291. Rationale
  292. ---------
  293. This change was required to fix an issue on Android where on failed transaction
  294. a listener would not get called.
  295. Change
  296. ------
  297. JUCE's MPE classes have been updated to reflect the official specification
  298. recently approved by the MIDI Manufacturers Association (MMA).
  299. Possible Issues
  300. ---------------
  301. The most significant changes have occurred in the MPEZoneLayout classes and
  302. programs using the higher level MPE classes such as MPEInstrument,
  303. MPESynthesiser, MPESynthesiserBase and MPESynthesiserVoice should be
  304. unaffected.
  305. Previously, any MIDI channel from 1 - 15 could be selected to be the master
  306. channel of an MPE zone, with a specified number of member channels ascending
  307. from the master channel + 1. However, in the new specification this has been
  308. simplified so that a device only has a lower and/or an upper zone, where the
  309. lower zone has master channel 1 and assigns new member channels ascending from
  310. channel 2 and the upper zone has master channel 16 and assigns new member
  311. channels descending from channel 15.
  312. Workaround
  313. ----------
  314. Use the MPEZoneLayout::setLowerZone() and MPEZoneLayout::setUpperZone() methods
  315. to set zone layouts.
  316. Any UI that allows users to select and set zones on an MPE instrument should
  317. also be updated to reflect the specification changes.
  318. Rationale
  319. ---------
  320. The MPE classes in JUCE are out of date and should be updated to reflect the
  321. new, official MPE standard.
  322. Version 5.2.1
  323. =============
  324. Change
  325. ------
  326. Calling JUCEApplicationBase::quit() on Android will now really quit the app,
  327. rather than just placing it in background. Starting with API level 21 (Android
  328. 5.0), the app will not appear in recent apps list after calling quit(). Prior
  329. to API 21, the app will still appear in recent app lists but when a user
  330. chooses the app, a new instance of the app will be started.
  331. Possible Issues
  332. ---------------
  333. Any code calling JUCEApplicationBase::quit() to place the app in background
  334. will close the app instead.
  335. Workaround
  336. ----------
  337. Use Process::hide().
  338. Rationale
  339. ---------
  340. The old behaviour JUCEApplicationBase::quit() was confusing JUCE code, as a new
  341. instance of JUCE app was attempted to be created, while the older instance was
  342. still running in background. This would result in assertions when starting a
  343. second instance.
  344. Change
  345. ------
  346. On Windows, release builds will now link to the dynamic C++ runtime by default
  347. Possible Issues
  348. ---------------
  349. If you are creating a new .jucer project, then your plug-in will now link to
  350. the dynamic C++ runtime by default, which means that you MUST ensure that the
  351. C++ runtime libraries exist on your customer's computers.
  352. Workaround
  353. ----------
  354. If you are only targeting Windows 10, then the C++ runtime is now part of the
  355. system core components and will always exist on the computers of your customers
  356. (just like kernel332.dll, for example). If you are targeting Windows versions
  357. between Vista and Windows 10, then you should build your plug-in with the
  358. latest updated version of VS2015 or later, which ensures that it's linked to
  359. the universal runtime. Universal runtime is part of the system's core libraries
  360. on Windows 10 and on Windows versions Vista to 8.1, it will be available on
  361. your customer's computers via Windows Update. Unfortunately, if your customer
  362. has just installed Windows 8.1 to Vista on a fresh computer, then there is a
  363. chance that the update mechanism for the universal runtime hasn't triggered yet
  364. and your plug-in may still fail. Your installer should prompt the user to
  365. install all the Windows updates in this case or you can deploy the universal
  366. runtime as a redistributable with your installer. If you are targeting earlier
  367. versions of Windows then you should always include the runtime as a
  368. redistributable with your plug-in's installer. Alternatively, you can change
  369. the runtime linking to static (however, see 'Rationale' section).
  370. Rationale
  371. ---------
  372. In a recent update to Windows 10, Microsoft has limited the number of fiber
  373. local storage (FLS) slots per process. Effectively, this limits how many
  374. plug-ins with static runtime linkage can be loaded into a DAW. In the worst
  375. case, this limits the total number of plug-ins to a maximum of 64 plug-ins.
  376. There is no workaround for DAW vendors and the only solution is to push plug-in
  377. vendors to use the dynamic runtime. To help with this, JUCE has decided to make
  378. dynamic runtime linkage the default in JUCE.
  379. Change
  380. ------
  381. AudioProcessorGraph interface has changed in a number of ways - Node objects
  382. are now reference counted, there are different accessor methods to iterate
  383. them, and misc other small improvements to the API
  384. Possible Issues
  385. ---------------
  386. The changes won't cause any silent errors in user code, but will require some
  387. manual refactoring
  388. Workaround
  389. ----------
  390. Just find equivalent new methods to replace existing code.
  391. Rationale
  392. ---------
  393. The graph class was extremely old and creaky, and these changes is the start of
  394. an improvement process that should eventually result in it being broken down
  395. into fundamental graph building block classes for use in other contexts.
  396. Version 5.2.0
  397. =============
  398. Change
  399. ------
  400. Viewport now enables "scroll on drag" mode by default on Android and iOS.
  401. Possible Issues
  402. ---------------
  403. Any code relying on "scroll on drag" mode being turned off by default, should
  404. disable it manually.
  405. Workaround
  406. ----------
  407. None.
  408. Rationale
  409. ---------
  410. It is expected on mobile devices to be able to scroll a list by just a drag,
  411. rather than using a dedicated scrollbar. The scrollbar is still available
  412. though if needed.
  413. Change
  414. ------
  415. The previous setting of Android exporter "Custom manifest xml elements"
  416. creating child nodes of <application> element has been replaced by "Custom
  417. manifest XML content" setting that allows to specify the content of the entire
  418. manifest instead. Any previously values of the old setting will be used in the
  419. new setting by default, and they will need changing as mentioned in Workaround.
  420. The custom content will be merged with the content auto-generated by Projucer.
  421. Any custom elements or custom attributes will override the ones set by
  422. Projucer. Projucer will also automatically add any missing and required
  423. elements and attributes.
  424. Possible Issues
  425. ---------------
  426. If a Projucer project used "Custom manifest xml elements" field, the value will
  427. no longer be compatible with the project generated in the latest Projucer
  428. version. The solution is very simple and quick though, as mentioned in the
  429. Workaround section.
  430. Workaround
  431. ----------
  432. For any elements previously used, simply embed them explicitly in
  433. <manifest><application> elements, for example instead of:
  434. <meta-data android:name="paramId1" android:value="paramValue1"/>
  435. <meta-data android:name="paramId2" android:value="paramValue2"/>
  436. simply write:
  437. <manifest>
  438. <application>
  439. <meta-data android:name="paramId1" android:value="paramValue1"/>
  440. <meta-data android:name="paramId2" android:value="paramValue2"/>
  441. </application>
  442. </manifest>
  443. Rationale
  444. ---------
  445. To maintain the high level of flexibility of generated Android projects and to
  446. avoid creating fields in Projucer for every possible future parameter, it is
  447. simpler to allow to set up the required parameters manually. This way it is not
  448. only possible to add any custom elements but it is also possible to override
  449. the default attributes assigned by Projucer for the required elements. For
  450. instance, if the default value of <supports-screens> element is not
  451. satisfactory because you want a support for x-large screens only, simply set
  452. "Custom manifest XML content" to:
  453. <manifest>
  454. <supports-screens android:xlargeScreens="true"/>
  455. </manifest>
  456. Version 5.1.2
  457. =============
  458. Change
  459. ------
  460. The method used to classify AudioUnit, VST3 and AAX plug-in parameters as
  461. either continuous or discrete has changed, and AudioUnit and AudioUnit v3
  462. parameters are marked as high precision by default.
  463. Possible Issues
  464. ---------------
  465. Plug-ins: DAW projects with automation data written by an AudioUnit, AudioUnit
  466. v3 VST3 or AAX plug-in built with JUCE version 5.1.1 or earlier may load
  467. incorrectly when opened by an AudioUnit, AudioUnit v3, VST3 or AAX plug-in
  468. built with JUCE version 5.1.2 and later.
  469. Hosts: The AudioPluginInstance::getParameterNumSteps method now returns correct
  470. values for AU and VST3 plug-ins.
  471. Workaround
  472. ----------
  473. Plug-ins: Enable JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE in the
  474. juce_audio_plugin_client module config page in the Projucer.
  475. Hosts: Use AudioPluginInstance::getDefaultNumParameterSteps as the number of
  476. steps for all parameters.
  477. Rationale
  478. ---------
  479. The old system for presenting plug-in parameters to a host as either continuous
  480. or discrete is inconsistent between plug-in types and lacks sufficient
  481. flexibility. This change harmonises the behaviour and allows individual
  482. parameters to be marked as continuous or discrete. If AudioUnit and AudioUnit
  483. v3 parameters are not marked as high precision then hosts like Logic Pro only
  484. offer a limited number of parameter values, which again produces different
  485. behaviour for different plug-in types.
  486. Change
  487. ------
  488. A new FrameRateType fps23976 has been added to AudioPlayHead,
  489. Possible Issues
  490. ---------------
  491. Previously JUCE would report the FrameRateType fps24 for both 24 and 23.976
  492. fps. If your code uses switch statements (or similar) to handle all possible
  493. frame rate types, then this change may cause it to fall through.
  494. Workaround
  495. ----------
  496. Add fps23976 to your switch statement and handle it appropriately.
  497. Rationale
  498. ---------
  499. JUCE should be able to handle all popular frame rate codes but was missing
  500. support for 23.976.
  501. Change
  502. ------
  503. The String (bool) constructor and operator<< (String&, bool) have been
  504. explicitly deleted.
  505. Possible Issues
  506. ---------------
  507. Previous code which relied on an implicit bool to int type conversion to
  508. produce a String will not compile.
  509. Workaround
  510. ----------
  511. Cast your bool to an integer to generate a string representation of it.
  512. Rationale
  513. ---------
  514. Letting things implicitly convert to bool to produce a String opens the door to
  515. all kinds of nasty type conversion edge cases. Furthermore, before this change,
  516. MacOS would automatically convert bools to ints but this wouldn't occur on
  517. different platform. Now the behaviour is consistent across all operating
  518. systems supported by JUCE.
  519. Change
  520. ------
  521. The writeAsJSON virtual method of the DynamicObject class requires an
  522. additional parameter, maximumDecimalPlaces, to specify the maximum precision of
  523. floating point numbers.
  524. Possible Issues
  525. ---------------
  526. Classes which inherit from DynamicObject and override this method will need to
  527. update their method signature.
  528. Workaround
  529. ----------
  530. Your custom DynamicObject class can choose to ignore the additional parameter
  531. if you don't wish to support this behaviour.
  532. Rationale
  533. ---------
  534. When serialising the results of calculations to JSON the rounding of floating
  535. point numbers can result in numbers with 17 significant figures where only a
  536. few are required. This change to DynamicObject is required to support
  537. truncating those numbers.
  538. Version 5.1.0
  539. =============
  540. Change
  541. ------
  542. The JUCE_COMPILER_SUPPORTS_LAMBDAS preprocessor macro has been removed.
  543. Possible Issues
  544. ---------------
  545. If your project is using JUCE_COMPILER_SUPPORTS_LAMBDAS in your source code
  546. then it will likely evaluate to "false" and you could end up unnecessarily
  547. using code paths which avoid lambda functions.
  548. Workaround
  549. ----------
  550. Remove the usage of JUCE_COMPILER_SUPPORTS_LAMBDAS from your code.
  551. Rationale
  552. ---------
  553. Lambda functions are now available on all platforms that JUCE supports.
  554. Change
  555. ------
  556. The option to set the C++ language standard is now located in the project
  557. settings instead of the build configuration settings.
  558. Possible Issues
  559. ---------------
  560. Projects that had a specific version of the C++ language standard set for
  561. exporter build configurations will instead use the default (C++11) when
  562. re-saving with the new Projucer.
  563. Workaround
  564. ----------
  565. Change the "C++ Language Standard" setting in the main project settings to the
  566. required version - the Projucer will add this value to the exported project as
  567. a compiler flag when saving exporters.
  568. Rationale
  569. ---------
  570. Having a different C++ language standard option for each build configuration
  571. was unnecessary and was not fully implemented for all exporters. Changing it to
  572. a per-project settings means that the preference will propagate to all
  573. exporters and only needs to be set in one place.
  574. Change
  575. ------
  576. PopupMenus now scale according to the AffineTransform and scaling factor of
  577. their target components.
  578. Possible Issues
  579. ---------------
  580. Developers who have manually scaled their PopupMenus to fit the scaling factor
  581. of the parent UI will now have the scaling applied two times in a row.
  582. Workaround
  583. ----------
  584. 1. Do not apply your own manual scaling to make your popups match the UI
  585. scaling
  586. or
  587. 2. Override the Look&Feel method
  588. PopupMenu::LookAndFeelMethods::shouldPopupMenuScaleWithTargetComponent and
  589. return false. See
  590. https://github.com/WeAreROLI/JUCE/blob/c288c94c2914af20f36c03ca9c5401fcb555e4e9/modules/juce_gui_basics/menus/juce_PopupMenu.h#725
  591. Rationale
  592. ---------
  593. Previously, PopupMenus would not scale if the GUI of the target component (or
  594. any of it’s parents) were scaled. The only way to scale PopupMenus was via the
  595. global scaling factor. This had several drawbacks as the global scaling factor
  596. would scale everything. This was especially problematic in plug-in editors.
  597. Change
  598. ------
  599. Removed the setSecurityFlags() method from the Windows implementation of
  600. WebInputStream as it disabled HTTPS security features.
  601. Possible Issues
  602. ---------------
  603. Any code previously relying on connections to insecure webpages succeeding will
  604. no longer work.
  605. Workaround
  606. ----------
  607. Check network connectivity on Windows and re-write any code that relied on
  608. insecure connections.
  609. Rationale
  610. ---------
  611. The previous behaviour resulted in network connections on Windows having all
  612. the HTTPS security features disabled, exposing users to network attacks. HTTPS
  613. connections on Windows are now secure and will fail when connecting to an
  614. insecure web address.
  615. Change
  616. ------
  617. Pointer arithmetic on a pointer will have the same result regardless if it is
  618. wrapped in JUCE's Atomic class or not.
  619. Possible Issues
  620. ---------------
  621. Any code using pointer arithmetic on Atomic<T*> will now have a different
  622. result leading to undefined behaviour or crashes.
  623. Workaround
  624. ----------
  625. Re-write your code in a way that it does not depend on your pointer being
  626. wrapped in JUCE's Atomic or not. See rationale.
  627. Rationale
  628. ---------
  629. Before this change, pointer arithmetic with JUCE's Atomic type would yield
  630. confusing results. For example, the following code would assert before this
  631. change:
  632. int* a; Atomic<int*> b;
  633. jassert (++a == ++b);
  634. Pointer a in the above code would be advanced by sizeof(int) whereas the JUCE's
  635. Atomic always advances it's underlying pointer by a single byte. The same is
  636. true for operator+=/operator-= and operator--. The difference in behaviour is
  637. confusing and unintuitive. Furthermore, this aligns JUCE's Atomic type with
  638. std::atomic.
  639. Version 4.3.1
  640. =============
  641. Change
  642. ------
  643. JUCE has changed the way native VST3/AudioUnit parameter ids are calculated.
  644. Possible Issues
  645. ---------------
  646. DAW projects with automation data written by an AudioUnit or VST3 plug-in built
  647. with pre JUCE 4.3.1 versions will load incorrectly when opened by an AudioUnit
  648. or VST3 built with JUCE versions 4.3.1 and later. Plug-ins using
  649. JUCE_FORCE_USE_LEGACY_PARAM_IDS are not affected.
  650. Workaround
  651. ----------
  652. Disable JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS in the
  653. juce_audio_plugin_client module config page in the Projucer. For new plug-ins,
  654. be sure to use the default value for this property.
  655. Rationale
  656. --------
  657. JUCE needs to convert between its own JUCE parameter id format (strings) to the
  658. native parameter id formats of the various plug-in backends. For VST3 and
  659. AudioUnits, JUCE uses a hash function to generate a numeric id. However, some
  660. VST3/AudioUnit hosts (specifically Studio One) have a bug that ignore any
  661. parameters that have a negative parameter id. Therefore, the hash function for
  662. VST3/AudioUnits needed to be changed to only return positive-valued hashes.
  663. Version 4.3.0
  664. =============
  665. Change
  666. ------
  667. A revised multi-bus API was released which supersedes the previously flawed
  668. multi-bus API - JUCE versions 4.0.0 - 4.2.4 (inclusive).
  669. Possible Issues
  670. ---------------
  671. If you have developed a plug-in with JUCE versions 4.0.0 - 4.2.4 (inclusive),
  672. then you will need to update your plug-in to the new multi-bus API. Pre JUCE
  673. 4.0.0 plug-ins are not affected apart from other breaking changes listed in
  674. this document.
  675. Woraround
  676. ---------
  677. None.
  678. Rationale
  679. --------
  680. A flawed multi-bus API was introduced with JUCE versions 4.0.0 up until version
  681. 4.2.4 (inclusive) which was not API compatible with pre JUCE 4 plug-ins. JUCE
  682. 4.3.0 releases a revised multi-bus API which restores pre JUCE 4 API
  683. compatibility. However, the new multi-bus API is not compatible with the flawed
  684. multi-bus API (JUCE version 4.0.0 - 4.2.4).
  685. Change
  686. ------
  687. JUCE now generates the AAX plug-in bus layout configuration id independent from
  688. the position as it appears in the Projucer’s legacy "Channel layout
  689. configuration" field.
  690. Possible Issues
  691. ---------------
  692. ProTools projects generated with a < 4.3.0 JUCE versions of your plug-in, may
  693. load the incorrect bus configuration when upgrading your plug-in to >= 4.3.0
  694. versions of JUCE.
  695. Workaround
  696. ----------
  697. Implement AudioProcessor’s getAAXPluginIDForMainBusConfig callback to manually
  698. override which AAX plug-in id is associated to a specific bus layout of your
  699. plug-in. This workaround is only necessary if you have released your plug-in
  700. built with a version previous to JUCE 4.3.0.
  701. Rationale
  702. --------
  703. The new multi-bus API offers more features, flexibility and accuracy in
  704. specifying bus layouts which cannot be expressed by the Projucer’s legacy
  705. "Channel layout configuration" field. The native plug-in format backends use
  706. the new multi-bus callback APIs to negotiate channel layouts with the host -
  707. including the AAX plug-in ids assigned to specific bus layouts. With the
  708. callback API, there is no notion of an order in which the channel
  709. configurations appear - as was the case with the legacy "Channel layout
  710. configuration" field - and therefore cannot be used to generate the AAX plug-in
  711. id. To remain backward compatible to pre JUCE 4.0.0 plug-ins, JUCE does
  712. transparently convert the legacy "Channel layout configuration" field to the
  713. new callback based multi-bus API, but this does not take the order into account
  714. in which the channel configurations appear in the legacy "Channel layout
  715. configuration" field.
  716. Version 4.2.1
  717. =============
  718. Change
  719. ------
  720. JUCE now uses the paramID property used in AudioProcessorParameterWithID to
  721. uniquely identify parameters to the host.
  722. Possible Issues
  723. ---------------
  724. DAW projects with automation data written by an audio plug-in built with pre
  725. JUCE 4.2.1 will load incorrectly when opened by an audio plug-in built with
  726. JUCE 4.2.1 and later.
  727. Workaround
  728. ----------
  729. Enable JUCE_FORCE_USE_LEGACY_PARAM_IDS in the juce_audio_plugin_client module config
  730. page in the Projucer. For new plug-ins, be sure to disable this property.
  731. Rationale
  732. --------
  733. Each parameter of the AudioProcessor has an id associated so that the plug-in’s
  734. host can uniquely identify parameters. The id has a different data-type for
  735. different plug-in types (for example VST uses integers, AAX uses string
  736. identifiers). Before 4.2.1, JUCE generated the parameter id by using the index
  737. of the parameter, i.e. the first parameter had id zero, the second parameter
  738. had id one, etc. This caused problems for certain plug-in types where JUCE
  739. needs to add internal parameters to the plug-in (for example VST3 requires the
  740. bypass control to be a parameter - so JUCE automatically creates this parameter
  741. for you in the VST3 backend). This causes subtle problems if a parameter is
  742. added to an update of an already published plug-in. The new parameter’s id
  743. would be identical to the id of the bypass parameter in old versions of your
  744. plug-in, causing seemingly random plug-in bypass behaviour when user’s upgrade
  745. their plug-in.
  746. Most plug-in backends differentiate between a parameter’s id an index, so this
  747. distinction was adopted starting with JUCE 4.2.1 by deriving the parameter’s
  748. unique id from the paramID property of AudioProcessorParameterWithID class.