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.

1045 lines
33KB

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