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.

2005 lines
63KB

  1. JUCE breaking changes
  2. =====================
  3. develop
  4. =======
  5. Change
  6. ------
  7. FlexItem::alignSelf now defaults to "autoAlign" rather than "stretch".
  8. Possible Issues
  9. ---------------
  10. FlexBox layouts will be different in cases where FlexBox::alignItems is set to
  11. a value other than "stretch". This is because each FlexItem will now default
  12. to using the FlexBox's alignItems value. Layouts that explicitly set
  13. FlexItem::alignSelf on each item will not be affected.
  14. Workaround
  15. ----------
  16. To restore the previous layout behaviour, set FlexItem::alignSelf to "stretch"
  17. on all FlexItems that would otherwise use the default value for alignSelf.
  18. Rationale
  19. ---------
  20. The new behaviour more closely matches the behaviour of CSS FlexBox
  21. implementations. In CSS, "align-self" has an initial value of "auto", which
  22. computes to the parent's "align-items" value.
  23. Change
  24. ------
  25. Functions on AudioPluginInstance that can add parameters have been made
  26. private.
  27. Possible Issues
  28. ---------------
  29. Code implementing custom plugin formats may stop building if it calls these
  30. functions.
  31. Workaround
  32. ----------
  33. When implementing custom plugin formats, ensure that the plugin parameters
  34. derive from AudioPluginInstance::HostedParameter and then use
  35. addHostedParameter, addHostedParameterGroup or setHostedParameterTree to add
  36. the parameters to the plugin instance.
  37. Rationale
  38. ---------
  39. In a plugin host, it is very important to be able to uniquely identify
  40. parameters across different versions of the same plugin. To make this possible,
  41. we needed to introduce a way of retrieving a unique ID for each parameter,
  42. which is now possible using the HostedParameter class. However, we also needed
  43. to enforce that all AudioPluginInstances can only have parameters which are of
  44. the type HostedParameter, which required hiding the old functions.
  45. Version 6.1.0
  46. =============
  47. Change
  48. ------
  49. juce::gl::loadFunctions() no longer loads extension functions.
  50. Possible Issues
  51. ---------------
  52. Code that depended on extension functions being loaded automatically may cease
  53. to function correctly.
  54. Workaround
  55. ----------
  56. Extension functions can now be loaded using juce::gl::loadExtensions().
  57. Rationale
  58. ---------
  59. There are a great number of extension functions, and on some systems these can
  60. be slow to load (i.e. a second or so). Projects that do not require these
  61. extension functions should not have to pay for this unnecessary overhead. Now,
  62. only core functions will be loaded by default, and extensions can be loaded
  63. explicitly in projects that require such functionality.
  64. Change
  65. ------
  66. Thread::setPriority() will no longer set a realtime scheduling policy for all
  67. threads with non-zero priorities on POSIX systems.
  68. Possible Issues
  69. ---------------
  70. Threads that implicitly relied on using a realtime policy will no longer
  71. request a realtime policy if their priority is 7 or lower.
  72. Workaround
  73. ----------
  74. For threads that require a realtime policy on POSIX systems, request a priority
  75. of 8 or higher by calling Thread::setPriority() or
  76. Thread::setCurrentThreadPriority().
  77. Rationale
  78. ---------
  79. By default, new Thread instances have a priority of 5. Previously, non-zero
  80. priorities corresponded to realtime scheduling policies, meaning that new
  81. Threads would use the realtime scheduling policy unless they explicitly
  82. requested a priority of 0. However, most threads do not and should not require
  83. realtime scheduling. Setting a realtime policy on all newly-created threads may
  84. degrade performance, as multiple realtime threads will end up fighting for
  85. limited resources.
  86. Change
  87. ------
  88. The JUCE_GLSL_VERSION preprocessor definition has been removed.
  89. Possible Issues
  90. ---------------
  91. Code which used this definition will no longer compile.
  92. Workaround
  93. ----------
  94. Use OpenGLHelpers::getGLSLVersionString to retrieve a version string which is
  95. consistent with the capabilities of the current OpenGL context.
  96. Rationale
  97. ---------
  98. A compile-time version string is not very useful, as OpenGL versions and
  99. capabilities can change at runtime. Replacing this macro with a function allows
  100. querying the capabilities of the current context at runtime.
  101. Change
  102. ------
  103. The minimum support CMake version is now 3.15.
  104. Possible Issues
  105. ---------------
  106. It will no longer be possible to configure JUCE projects with CMake versions
  107. between 3.12 and 3.14 inclusive.
  108. Workaround
  109. ----------
  110. No workaround is available.
  111. Rationale
  112. ---------
  113. Moving to 3.15 allows us to use target_link_directories and
  114. target_link_options, which were introduced in 3.13, which in turn allows us to
  115. provide support for bundled precompiled libraries in modules. Plugins already
  116. required CMake 3.15, so this change just brings other target types in line with
  117. the requirements for plugins.
  118. Change
  119. ------
  120. The default value of JUCE_MODAL_LOOPS_PERMITTED has been changed from 1 to 0.
  121. Possible Issues
  122. ---------------
  123. With JUCE_MODAL_LOOPS_PERMITTED set to 0 code that previously relied upon modal
  124. loops will need to be rewritten to use asynchronous versions of the modal
  125. functions. There is no non-modal alternative to
  126. AlterWindow::showNativeDialogBox and the previously modal behaviour of the
  127. MultiDocumentPanel destructor has changed.
  128. Workaround
  129. ----------
  130. Set JUCE_MODAL_LOOPS_PERMITTED back to 1.
  131. Rationale
  132. ---------
  133. Modal operations are a frequent source of problems, particularly when used in
  134. plug-ins. On Android modal loops are not possible, so people wanting to target
  135. Android often have an unwelcome surprise when then have to rewrite what they
  136. assumed to be platform independent code. Changing the default addresses these
  137. problems.
  138. Change
  139. ------
  140. The minimum supported C++ standard is now C++14 and the oldest supported
  141. compilers on macOS and Linux are now Xcode 9.2, GCC 5.0 and Clang 3.4.
  142. Possible Issues
  143. ---------------
  144. Older compilers will no longer be able to compile JUCE. People using Xcode 8.5
  145. on OS X 10.11 will need to update the operating system to OS X 10.12 to be able
  146. to use Xcode 9.2.
  147. Workaround
  148. ----------
  149. No workaround is available.
  150. Rationale
  151. ---------
  152. This compiler upgrade will allow the use of C++14 within the framework.
  153. Change
  154. ------
  155. Platform GL headers are no longer included in juce_opengl.h
  156. Possible Issues
  157. ---------------
  158. Projects depending on symbols declared in these headers may fail to build.
  159. Workaround
  160. ----------
  161. The old platform-supplied headers have been replaced with a new juce_gl.h
  162. header which is generated using the XML registry files supplied by Khronos.
  163. This custom header declares GL symbols in the juce::gl namespace. If your code
  164. only needs to be JUCE-compatible, you can explicitly qualify each name with
  165. `juce::gl::`. If you need your code to build with different extension-loader
  166. libraries (GLEW, GL3W etc.) you can make all GL symbols visible without
  167. additional qualification with `using namespace juce::gl`.
  168. Rationale
  169. ---------
  170. Using our own GL headers allows us to generate platform-independent headers
  171. which include symbols for all specified OpenGL versions and extensions. Note
  172. that although the function signatures exist, they may not resolve to a function
  173. at runtime. If your code uses commands from an extension or recent GL version,
  174. you should check each function pointer against `nullptr` before attempting to
  175. use it. To avoid repeatedly checking, you could query a subset of functions
  176. after calling gl::loadFunctions() and cache the results. Supplying custom GL
  177. headers also allows us to use C++ techniques (namespaces, references), making
  178. the headers safer than the platform-defined headers. Platform headers are
  179. generally written in C, and export a significant portion of their symbols as
  180. preprocessor definitions.
  181. Change
  182. ------
  183. The functions `getComponentAsyncLayerBackedViewDisabled`
  184. and `setComponentAsyncLayerBackedViewDisabled` were moved into the juce
  185. namespace.
  186. Possible Issues
  187. ---------------
  188. Code that declares these functions may fail to link.
  189. Workaround
  190. ----------
  191. Move declarations of these functions into the juce namespace.
  192. Rationale
  193. ---------
  194. Although the names of these functions are unlikely to collide with functions
  195. from other libraries, we can make such collisions much more unlikely by keeping
  196. JUCE code in the juce namespace.
  197. Change
  198. ------
  199. The `juce_blocks_basics` module was removed.
  200. Possible Issues
  201. ---------------
  202. Projects depending on `juce_blocks_basics` will not build.
  203. Workaround
  204. ----------
  205. The BLOCKS API is now located in a separate repository:
  206. https://github.com/WeAreROLI/roli_blocks_basics
  207. Projects which used to depend on `juce_blocks_basics` can use
  208. `roli_blocks_basics` instead.
  209. Rationale
  210. ---------
  211. ROLI is no longer involved with the development of JUCE. Therefore, development
  212. on the BLOCKS API has been moved out of the JUCE repository, and to a new
  213. repository managed by ROLI.
  214. Change
  215. ------
  216. The live build functionality of the Projucer has been removed.
  217. Possible Issues
  218. ---------------
  219. You will no longer be able to use live build in the Projucer.
  220. Workaround
  221. ----------
  222. None.
  223. Rationale
  224. ---------
  225. Keeping the live build compatible with the latest compilers on all our
  226. supported platforms is a very substantial maintenance burden, but very few
  227. people are using this feature of the Projucer. Removing the live build will
  228. simplify the code and our release process.
  229. Change
  230. ------
  231. `Component::createFocusTraverser()` has been renamed to
  232. `Component::createKeyboardFocusTraverser()` and now returns a `std::unique_ptr`
  233. instead of a raw pointer. `Component::createFocusTraverser()` is a new method
  234. for controlling basic focus traversal and not keyboard focus traversal.
  235. Possible Issues
  236. ---------------
  237. Derived Components that override the old method will no longer compile.
  238. Workaround
  239. ----------
  240. Override the new method. Be careful to override
  241. `createKeyboardFocusTraverser()` and not `createFocusTraverser()` to ensure
  242. that the behaviour is the same.
  243. Rationale
  244. ---------
  245. The ownership of this method is now clearer as the previous code relied on the
  246. caller deleting the object. The name has changed to accomodate the new
  247. `Component::createFocusTraverser()` method that returns an object for
  248. determining basic focus traversal, of which keyboard focus is generally a
  249. subset.
  250. Change
  251. ------
  252. PluginDescription::uid has been deprecated and replaced with a new 'uniqueId'
  253. data member.
  254. Possible Issues
  255. ---------------
  256. Code using the old data member will need to be updated in order to compile.
  257. Workaround
  258. ----------
  259. Code that used to use 'uid' to identify plugins should switch to using
  260. 'uniqueId', with some caveats - see "Rationale" for details.
  261. Rationale
  262. ---------
  263. The 'uniqueId' member has the benefit of being consistent for
  264. a given VST3 across Windows, macOS, and Linux. However, the value of the
  265. uniqueId may differ from the value of the old uid on some platforms. The value
  266. of the old 'uid' member can now be found in the 'deprecatedUid' member, which
  267. should allow clients to implement logic such as checking a saved uid against
  268. the new uniqueId, and falling back to the deprecatedUid. This should allow
  269. hosts to gracefully upgrade from the old uid values to the new values.
  270. Version 6.0.8
  271. =============
  272. Change
  273. ------
  274. Calling AudioProcessorEditor::setResizeLimits() will no longer implicitly add a
  275. ResizableCornerComponent to the editor if it has not already been set as
  276. resizable.
  277. Possible Issues
  278. ---------------
  279. Code which previously relied on calling this method to set up the corner
  280. resizer will no longer work.
  281. Workaround
  282. ----------
  283. Explicitly call AudioProcessorEditor::setResizable() with the second argument
  284. set to true to enable the corner resizer.
  285. Rationale
  286. ---------
  287. The previous behaviour was undocumented and potentially confusing. There is now
  288. a single method to control the behaviour of the editor's corner resizer to
  289. avoid any ambiguity.
  290. Change
  291. ------
  292. The implementations of `getValue` and `setValue` in `AUInstanceParameter` now
  293. properly take the ranges of discrete parameters into account.
  294. Possible Issues
  295. ---------------
  296. This issue affects JUCE Audio Unit hosts. Automation data previously saved for
  297. a discrete parameter with a non-zero minimum value may not set the parameter to
  298. the same values as previous JUCE versions. Note that previously, `getValue` on
  299. a hosted discrete parameter may have returned out-of-range values, and
  300. `setValue` may have only mapped to a portion of the parameter range. As a
  301. result, automation recorded for affected parameters was likely already behaving
  302. unexpectedly.
  303. Workaround
  304. ----------
  305. There is no workaround.
  306. Rationale
  307. ---------
  308. The old behaviour was incorrect, and was causing issues in plugin validators
  309. and other hosts. Hosts expect `getValue` to return a normalised parameter
  310. value. If this function returns an out-of-range value (including Inf and NaN)
  311. this is likely to break assumptions made by the host, leading to crashes,
  312. corrupted project data, or other defects.
  313. Change
  314. ------
  315. AudioProcessorListener::audioProcessorChanged gained a new parameter describing
  316. the nature of any change.
  317. Possible Issues
  318. ---------------
  319. Code using the old function signature will not build until updated to use
  320. the new signature.
  321. Workaround
  322. ----------
  323. Listeners should add the new parameter to any overrides of
  324. audioProcessorChanged.
  325. Rationale
  326. ---------
  327. The new function signature means that wrappers can be smarter about the
  328. requests that they make to hosts whenever some aspect of the processor changes.
  329. In particular, plugin wrappers can now distinguish between changes to latency,
  330. parameter attributes, and the current program. This means that hosts will no
  331. longer assume parameters have changed when `setLatencySamples` is called.
  332. Change
  333. ------
  334. CharacterFunctions::readDoubleValue now returns values consistent with other
  335. C++ number parsing libraries. Parsing values smaller than the minimum number
  336. respresentable in a double will return (+/-)0.0 and parsing values larger than
  337. the maximum number respresentable in a double will return (+/-)inf.
  338. Possible Issues
  339. ---------------
  340. Code reading very large or very small numbers may receive values of 0.0 and inf
  341. rather than nan.
  342. Workaround
  343. ----------
  344. Where you may be using std::isnan to check the validity of the result you can
  345. instead use std::isfinite.
  346. Rationale
  347. ---------
  348. The new behaviour is consistent with other string parsing libraries.
  349. Version 6.0.6
  350. =============
  351. Change
  352. ------
  353. The name of `OperatingSystemType::MacOSX_11_0` was changed to
  354. `OperatingSystemType::MacOS_11`.
  355. Possible Issues
  356. ---------------
  357. Code using the old name will not build until it is updated to use the new name.
  358. Workaround
  359. ----------
  360. Update code using the old name to use the new name instead.
  361. Rationale
  362. ---------
  363. Newer versions of macOS have dropped the "X" naming. Minor version updates are
  364. also less significant now than they were for the X-series.
  365. Change
  366. ------
  367. Xcode projects generated using the Projucer will now use the "New Build System"
  368. instead of the "Legacy Build System" by default.
  369. Possible Issues
  370. ---------------
  371. Xcode 10.0 - 10.2 has some known issues when using the new build system such as
  372. JUCE modules not rebuilding correctly when modified, issue and file navigation
  373. not working, and breakpoints not being reliably set or hit.
  374. Workaround
  375. ----------
  376. If you are using an affected version of Xcode then you can enable the "Use
  377. Legacy Build System" setting in the Projucer Xcode exporter to go back to the
  378. previous behaviour.
  379. Rationale
  380. ---------
  381. The legacy build system has issues building arm64 binaries for Apple silicon
  382. and will eventually be removed altogether.
  383. Version 6.0.5
  384. =============
  385. Change
  386. ------
  387. New pure virtual methods accepting `PopupMenu::Options` arguments have been
  388. added to `PopupMenu::LookAndFeelMethods`.
  389. Possible Issues
  390. ---------------
  391. Classes derived from `PopupMenu::LookAndFeelMethods`, such as custom
  392. LookAndFeel classes, will not compile unless these pure virtual methods are
  393. implemented.
  394. Workaround
  395. ----------
  396. The old LookAndFeel methods still exist, so if the new Options parameter is not
  397. useful in your application, your implementation of
  398. `PopupMenu::LookAndFeelMethods` can simply forward to the old methods. For
  399. example, your implementation of `drawPopupMenuBackgroundWithOptions` can
  400. internally call your existing `drawPopupMenuBackground` implementation.
  401. Rationale
  402. ---------
  403. Allowing the LookAndFeelMethods to access the popup menu's options allows for
  404. more flexible styling. For example, a theme may wish to query the menu's target
  405. component or parent for colours to use.
  406. Change
  407. ------
  408. A typo in the JUCEUtils CMake script that caused the wrong manufacturer code to
  409. be set in the compile definitions for a plugin was fixed.
  410. Possible Issues
  411. ---------------
  412. The manufacturer code for plugins built under CMake with this version of JUCE
  413. will differ from the manufacturer code that was generated previously.
  414. Workaround
  415. ----------
  416. If you have released plugins that used the old, incorrect manufacturer code and
  417. wish to continue using this code for backwards compatibility, add the following
  418. to your `juce_add_plugin` call:
  419. USE_LEGACY_COMPATIBILITY_PLUGIN_CODE TRUE
  420. In most cases, this should not be necessary, and we recommend using the fixed
  421. behaviour.
  422. Rationale
  423. ---------
  424. This change ensures that the manufacturer codes used by CMake projects match
  425. the codes that would be generated by the Projucer, improving compatibility
  426. when transitioning from the Projucer to CMake.
  427. Version 6.0.2
  428. =============
  429. Change
  430. ------
  431. The JUCE_WASAPI_EXCLUSIVE flag has been removed from juce_audio_devices and all
  432. available WASAPI audio device modes (shared, shared low latency and exclusive)
  433. are available by default when JUCE_WASAPI is enabled. The
  434. AudioIODeviceType::createAudioIODeviceType_WASAPI() method which takes a single
  435. boolean argument has also been deprecated in favour of a new method which takes
  436. a WASAPIDeviceMode enum.
  437. Possible Issues
  438. ---------------
  439. Code that relied on the JUCE_WASAPI_EXCLUSIVE flag to disable WASAPI exclusive
  440. mode will no longer work.
  441. Workaround
  442. ----------
  443. Override the AudioDeviceManager::createAudioDeviceTypes() method to omit the
  444. WASAPI exclusive mode device if you do not want it to be available.
  445. Rationale
  446. ---------
  447. JUCE now supports shared low latency WASAPI audio devices via the AudioClient3
  448. interface and instead of adding an additional compile time config flag to
  449. enable this functionality, which adds complexity to the build process when not
  450. using the Projucer, JUCE makes all WASAPI device modes available by default.
  451. Change
  452. ------
  453. The fields representing Mac OS X 10.4 to 10.6 inclusive have been removed from
  454. the `OperatingSystemType` enum.
  455. Possible Issues
  456. ---------------
  457. Code that uses these fields will fail to build.
  458. Workaround
  459. ----------
  460. Remove references to these fields from user code.
  461. Rationale
  462. ---------
  463. JUCE is not supported on Mac OS X versions lower than 10.7, so it is a given
  464. that `getOperatingSystemType` will always return an OS version greater than or
  465. equal to 10.7. Code that changes behaviours depending on the OS version can
  466. assume that this version is at least 10.7.
  467. Change
  468. ------
  469. The JUCE_DISABLE_COREGRAPHICS_FONT_SMOOTHING flag in juce_graphics is no
  470. longer used on iOS.
  471. Possible Issues
  472. ---------------
  473. Projects with this flag enabled may render differently on iOS.
  474. Workaround
  475. ----------
  476. There is no workaround.
  477. Rationale
  478. ---------
  479. When using a cached image to render Components with `setBufferedToImage (true)`
  480. the result now matches the default behaviour on iOS where fonts are not
  481. smoothed.
  482. Change
  483. ------
  484. Space, return and escape key events on the native macOS menu bar are no longer
  485. passed to the currently focused JUCE Component.
  486. Possible Issues
  487. ---------------
  488. Code relying on receiving these keyboard events will no longer work.
  489. Workaround
  490. ----------
  491. There is no workaround.
  492. Rationale
  493. ---------
  494. It should be possible for users with a keyboard or assistive device to navigate
  495. the menu, invoking the currently highlighted menu item with the space or return
  496. key and dismissing the menu with the escape key. These key events should not be
  497. passed to the application and doing so interferes with the accessibility of
  498. JUCE apps. Only passing these events to the native macOS menu means that JUCE
  499. apps behave as expected for users.
  500. Version 6.0.0
  501. =============
  502. Change
  503. ------
  504. The Convolution class interface was changed:
  505. - `loadImpulseResponse` member functions now take `enum class` parameters
  506. instead of `bool`.
  507. - `copyAndLoadImpulseResponseFromBlock` and
  508. `copyAndLoadImpulseResponseFromBuffer` were replaced by a new
  509. `loadImpulseResponse` overload.
  510. Possible Issues
  511. ---------------
  512. Code using the old interface will no longer compile, and will need to be
  513. updated.
  514. Workaround
  515. ----------
  516. Code that was previously loading impulse responses from binary data or from
  517. files can substitute old `bool` parameters with the newer `enum class`
  518. equivalents. Code that was previously passing buffers or blocks will need
  519. reworking so that the Convolution instance can take ownership of the buffer
  520. containing the impulse response.
  521. Rationale
  522. ---------
  523. The newer `enum class` parameters make user code much more readable, e.g.
  524. `loadImpulseResponse (file, Stereo::yes, Trim::yes, 0, Normalise::yes)` rather
  525. than `loadImpulseResponse (file, true, true, 0, true);`. By taking ownership of
  526. the passed buffer, the Convolution can avoid preallocating a large internal
  527. buffer, reducing memory usage when short impulse responses are used. Changing
  528. the ownership semantics of the buffer also makes it easier for users to avoid
  529. copies/allocations on the audio thread, and gives more flexibility to the
  530. implementation to run initialisation tasks on a background thread.
  531. Change
  532. ------
  533. All references to ROLI Ltd. (ROLI) have been changed to Raw Material Software
  534. Limited.
  535. Possible Issues
  536. ---------------
  537. Exising projects, particularly Android, may need to be resaved by the Projucer
  538. and have the old build artifacts deleted before they will build.
  539. Workaround
  540. ----------
  541. In Android projects any explicit mention of paths with the from "com.roli.*"
  542. should be changed to the form "com.rmsl.*".
  543. Rationale
  544. ---------
  545. This change reflects the change in ownership from ROLI to RMSL.
  546. Change
  547. ------
  548. The Windows DPI handling in the VST wrapper and hosting code has been
  549. refactored to be more stable.
  550. Possible Issues
  551. ---------------
  552. The new code uses a top-level AffineTransform to scale the JUCE editor window
  553. instead of native methods. Therefore any AudioProcessorEditors which have their
  554. own AffineTransform applied will no longer work correctly.
  555. Workaround
  556. ----------
  557. If you are using an AffineTransform to scale the entire plug-in window then
  558. consider putting the component you want to transform in a child of
  559. the editor and transform that instead. Alternatively, if you don't need a
  560. separate scale factor for each plug-in instance you can use
  561. Desktop::setGlobalScaleFactor().
  562. Rationale
  563. ---------
  564. The old code had some bugs when using OpenGL and when moving between monitors
  565. with different scale factors. The new code should fix these and DPI-aware
  566. plug-ins will scale correctly.
  567. Change
  568. ------
  569. Relative Xcode subproject paths specified in the Projucer are now relative to
  570. the build directory rather than the project directory.
  571. Possible Issues
  572. ---------------
  573. After being re-saved in the Projucer existing Xcode projects will fail to find
  574. any subprojects specified using a relative path.
  575. Workaround
  576. ----------
  577. Update the subproject path in the Projucer.
  578. Rationale
  579. ---------
  580. Most other Xcode specific paths are specified reltive to the build directory.
  581. This change brings the Xcode subproject path in line with the rest of the
  582. configuration.
  583. Version 5.4.6
  584. =============
  585. Change
  586. ------
  587. AudioProcessorValueTreeState::getRawParameterValue now returns a
  588. std::atomic<float>* instead of a float*.
  589. Possible Issues
  590. ---------------
  591. Existing code which explicitly mentions the type of the returned value, or
  592. interacts with the dereferenced float in ways unsupported by the std::atomic
  593. wrapper, will fail to compile. Certain evaluation-reordering compiler
  594. optimisations may no longer be possible.
  595. Workaround
  596. ----------
  597. Update your code to deal with a std::atomic<float>* instead of a float*.
  598. Rationale
  599. ---------
  600. Returning a std::atomic<float>* allows the JUCE framework to have much stronger
  601. guarantees about thread safety.
  602. Change
  603. ------
  604. Removed a workaround from the ASIOAudioIODevice::getOutputLatencyInSamples()
  605. and ASIOAudioIODevice::getInputLatencyInSamples() methods which was adding an
  606. arbitrary amount to the reported latencies to compensate for dodgy, old
  607. drivers.
  608. Possible Issues
  609. ---------------
  610. Code which relied on these altered values may now behave differently.
  611. Workaround
  612. ----------
  613. Update your code to deal with the new, correct values reported from the drivers
  614. directly.
  615. Rationale
  616. ---------
  617. JUCE will now return the latency values as reported by the drivers without
  618. adding anything to them. The workaround was for old drivers and the current
  619. drivers should report the correct values without the need for the workaround.
  620. Change
  621. ------
  622. The default behaviour of the AU and AUv3 plug-in wrappers is now to call
  623. get/setStateInformation instead of get/setProgramStateInformation.
  624. Possible Issues
  625. ---------------
  626. AudioProcessor subclasses which have overridden the default implementations of
  627. get/setProgramStateInformation (which simply call through to
  628. get/setStateInformation) may be unable to load previously saved state; state
  629. previously saved via a call to getProgramStateInformation will be presented to
  630. setStateInformation.
  631. Workaround
  632. ----------
  633. Enable the JUCE_AU_WRAPPERS_SAVE_PROGRAM_STATES configuration option in the
  634. juce_audio_plugin_client module to preserve backwards compatibility if
  635. required.
  636. Rationale
  637. ---------
  638. When using overridden get/setProgramStateInformation methods the previous
  639. behaviour of the AU and AUv3 wrappers does not correctly save and restore
  640. state.
  641. Version 5.4.5
  642. =============
  643. Change
  644. ------
  645. The alignment of text rendered on macOS using CoreGraphics may have shifted
  646. slightly, depending on the font you have used. The default macOS font has
  647. shifted downwards.
  648. Possible Issues
  649. ---------------
  650. Meticulously aligned text components of a GUI may now be misaligned.
  651. Workaround
  652. ----------
  653. Use a custom LookAndFeel to change the location where text is drawn, or use a
  654. different font that matches the previous alignment of your original font.
  655. Rationale
  656. ---------
  657. This was an unintentional change resulting from moving away from a deprecated
  658. macOS text API. The new alignment is consistent with other rendering engines
  659. (web browsers and text editors) and the software renderer.
  660. Change
  661. ------
  662. The JUCEApplicationBase::backButtonPressed() method now returns a bool to
  663. indicate whether the back event was handled or not.
  664. Possible Issues
  665. ---------------
  666. Applications which override this method will fail to compile.
  667. Workaround
  668. ----------
  669. You will need to update your code to return a bool indicating whether the back
  670. event was handled or not.
  671. Rationale
  672. ---------
  673. The back button behaviour on Android was previously broken as it would not do
  674. anything. The new code will correctly call finish() on the Activity when the
  675. back button is pressed but this method now allows the user to override this to
  676. implement their own custom navigation behaviour by returning true to indicate
  677. that it has been handled.
  678. Change
  679. ------
  680. The AudioBlock class has been refactored and some of the method names have
  681. changed. Additionally the `const` behaviour now mirrors that of `std::span`,
  682. with the `const`-ness of the contained data decoupled from the `const`-ness of
  683. the container.
  684. Possible Issues
  685. ---------------
  686. Code using the old method names or violating `const`-correctness will fail to
  687. compile.
  688. Workaround
  689. ----------
  690. You will need to update your code to use the new method names and select an
  691. appropriate `const`-ness for the AudioBlock and the data it references.
  692. Rationale
  693. ---------
  694. The names of some of the methods in the AudioBlock class were ambiguous,
  695. particularly when chaining methods involving references to other blocks. The
  696. interaction between the `const`-ness of the AudioBlock and the `const`-ness of
  697. the referenced data was also ambiguous and has now been standardised to the
  698. same behaviour as other non-owning data views like `std::span`.
  699. Version 5.4.4
  700. =============
  701. Change
  702. ------
  703. The Visual Studio 2013 exporter has been removed from the Projucer and we will
  704. no longer maintain backwards compatibility with Visual Studio 2013 in JUCE.
  705. Possible Issues
  706. ---------------
  707. It is no longer possible to create Visual Studio 2013 projects from the
  708. Projucer or compile JUCE-based software using Visual Studio 2013.
  709. Workaround
  710. ----------
  711. If you are using Visual Studio 2013 to build your projects you will need to
  712. update to a more modern version of Visual Studio.
  713. Rationale
  714. ---------
  715. Of all the platforms JUCE supports Visual Studio 2013 was holding us back the
  716. most in terms of C++ features we would like to use more broadly across the
  717. codebase. It is still possible to target older versions of Windows with more
  718. modern versions of Visual Studio. Until recently the AAX SDK was distributed as
  719. a Visual Studio 2013 project, but this is now provided as a Visual Studio 2017
  720. project.
  721. Change
  722. ------
  723. JUCE is moving towards using C++11 pointer container types instead of passing
  724. raw pointers as arguments and return values.
  725. Possible Issues
  726. ---------------
  727. You will need to change your code to pass std::unique_ptr into and out of
  728. various functions across JUCE's API.
  729. Workaround
  730. ----------
  731. None
  732. Rationale
  733. ---------
  734. Indicating ownership through the transfer of smart pointer types has been part
  735. of mainstream C++ for a long time and this change enforces memory safety by
  736. default in most situations.
  737. Change
  738. ------
  739. SystemTrayIconComponent::setIconImage now takes two arguments, rather than one.
  740. The new argument is a template image for use on macOS where all non-transparent
  741. regions will render in a monochrome colour determined dynamically by the
  742. operating system.
  743. Possible Issues
  744. ---------------
  745. You will now need to provide two images to display a SystemTrayIconComponent
  746. and the SystemTrayIconComponent will have a different appearance on macOS.
  747. Workaround
  748. ----------
  749. If you are not targeting macOS then you can provide an empty image, `{}`, for
  750. the second argument. If you are targeting macOS then you will likely need to
  751. design a new monochrome icon.
  752. Rationale
  753. ---------
  754. The introduction of "Dark Mode" in macOS 10.14 means that menu bar icons must
  755. support several different colours and highlight modes to retain the same
  756. appearance as the native Apple icons. Doing this correctly without delegating
  757. the behaviour to the operating system is extremely cumbersome, and the APIs we
  758. were previously using to interact with menu bar items have been deprecated.
  759. Change
  760. ------
  761. The AudioBlock class now differentiates between const and non-const data.
  762. Possible Issues
  763. ---------------
  764. The return type of the getInputBlock() method of the ProcessContextReplacing
  765. and ProcessContextNonReplacing classes has changed from AudioBlock<X> to
  766. AudioBlock<const X>.
  767. Workaround
  768. ----------
  769. For ProcessContextReplacing you should use getOutputBlock() instead of
  770. getInputBlock(). For ProcessContextNonReplacing attempting to modify the input
  771. block is very likely an error.
  772. Rationale
  773. ---------
  774. This change makes the intent of the code much clearer and means that we can
  775. remove some const_cast operations.
  776. Change
  777. ------
  778. The formatting of floating point numbers written to XML and JSON files has
  779. changed.
  780. Note that there is no change in precision - the XML and JSON files containing
  781. the new format numbers will parse in exactly the same way, it is only the
  782. string representation that has changed.
  783. Possible Issues
  784. ---------------
  785. If you rely upon exactly reproducing XML or JSON files then the new files may
  786. be different.
  787. Workaround
  788. ----------
  789. Update any reference XML or JSON files to use the new format.
  790. Rationale
  791. ---------
  792. The new format retains full precision, provides a human friendly representation
  793. of values near 1, and uses scientific notation for small and large numbers.
  794. This prevents needless file size bloat from numbers like 0.00000000000000001.
  795. Version 5.4.3
  796. =============
  797. Change
  798. ------
  799. The global user module path setting in the Projucer can now only contain a
  800. single path.
  801. Possible Issues
  802. ---------------
  803. Projects that previously relied on using multiple global user module paths
  804. separated by a semicolon will fail to find these modules after re-saving.
  805. Workaround
  806. ----------
  807. Replace the multiple paths with a single global user module path.
  808. Rationale
  809. ---------
  810. Using multiple global user module paths did not work when saving a project
  811. which exported to different OSes. Only allowing a single path will prevent this
  812. from silently causing issues.
  813. Version 5.4.2
  814. =============
  815. Change
  816. ------
  817. The return type of Block::getBlockAreaWithinLayout() has been changed from
  818. Rectangle to a simpler BlockArea struct.
  819. Possible Issues
  820. ---------------
  821. Classes that derive from Block and implement this pure virtual method will no
  822. longer compile due to a change in the function signature.
  823. Workaround
  824. ----------
  825. Update the method to return a BlockArea struct and update code that calls
  826. getBlockAreaWithinLayout to handle a BlockArea instead of a Rectangle.
  827. Rationale
  828. ---------
  829. The juce_blocks_basics is ISC licensed and therefore cannot depend on the
  830. GPL/Commercial licensed juce_graphics module that contains Rectangle.
  831. Change
  832. ------
  833. Renaming and deletion of open file handles on Windows is now possible using the
  834. FILE_SHARE_DELETE flag.
  835. Possible Issues
  836. ---------------
  837. Previous code that relied on open files not being able to be renamed or deleted
  838. on Windows may fail.
  839. Workaround
  840. ----------
  841. No workaround.
  842. Rationale
  843. ---------
  844. This unifies the behaviour across OSes as POSIX systems already allow this.
  845. Change
  846. ------
  847. Multiple changes to low-level, non-public JNI and Android APIs.
  848. Possible Issues
  849. ---------------
  850. If you were using any non-public, low-level JNI macros, calling java code or
  851. recieving JNI callbacks, then your code will probably no longer work. See the
  852. forum for further details.
  853. Workaround
  854. ----------
  855. See the forum for further details.
  856. Rationale
  857. ---------
  858. See the forum for further details.
  859. Change
  860. ------
  861. The minimum Android version for a JUCE app is now Android 4.1
  862. Possible Issues
  863. ---------------
  864. Your app may not run on very old versions of Android (less than 0.5% of the
  865. devices).
  866. Workaround
  867. ----------
  868. There is no workaround.
  869. Rationale
  870. ---------
  871. Less than 0.5% of all devices in the world run versions of Android older than
  872. Android 4.1. In the interest of keeping JUCE code clean and lean, we must
  873. depricate support for very old Android versions from time to time.
  874. Version 5.4.0
  875. =============
  876. Change
  877. ------
  878. The use of WinRT MIDI functions has been disabled by default for any version
  879. of Windows 10 before 1809 (October 2018 Update).
  880. Possible Issues
  881. ---------------
  882. If you were previously using WinRT MIDI functions on older versions of Windows
  883. then the new behaviour is to revert to the old Win32 MIDI API.
  884. Workaround
  885. ----------
  886. Set the preprocessor macro JUCE_FORCE_WINRT_MIDI=1 (in addition to the
  887. previously selected JUCE_USE_WINRT_MIDI=1) to allow the use of the WinRT API on
  888. older versions of Windows.
  889. Rationale
  890. ---------
  891. Until now JUCE's support for the Windows 10 WinRT MIDI API was experimental,
  892. due to longstanding issues within the API itself. These issues have been
  893. addressed in the Windows 10 1809 (October 2018 Update) release.
  894. Change
  895. ------
  896. The VST2 SDK embedded within JUCE has been removed.
  897. Possible Issues
  898. ---------------
  899. 1. Building or hosting VST2 plug-ins requires header files from the VST2 SDK,
  900. which is no longer part of JUCE.
  901. 2. Building a VST2-compatible VST3 plug-in (the previous default behaviour in
  902. JUCE) requires header files from the VST2 SDK, which is no longer part of
  903. JUCE.
  904. Workaround
  905. ----------
  906. 1. The VST2 SDK can be obtained from the vstsdk3610_11_06_2018_build_37 (or
  907. older) VST3 SDK or JUCE version 5.3.2. You should put the VST2 SDK in your
  908. header search paths or use the "VST (Legacy) SDK Folder" fields in the
  909. Projucer.
  910. 2. For new plug-in projects where you will be releasing both a VST2 and VST3
  911. version, and you want the VST3 plug-in to replace the VST2 plug-in in
  912. hosts that support it, then you should enable the JUCE_VST3_CAN_REPLACE_VST2
  913. option.
  914. 3. When a new JUCE plug-in project is created the value of
  915. JUCE_VST3_CAN_REPLACE_VST2 will be set to zero.
  916. Rationale
  917. ---------
  918. Distributing VST2 plug-ins requires a VST2 license from Steinberg. Following
  919. Steinberg's removal of the VST2 SDK from their public SDKs we are also removing
  920. the VST2 SDK from the JUCE codebase.
  921. Change
  922. ------
  923. The AudioProcessorValueTreeState::createAndAddParameter function has been
  924. deprecated.
  925. Possible Issues
  926. ---------------
  927. Deprecation warnings will be seen when compiling code which uses this function
  928. and eventually builds will fail when it is later removed from the API.
  929. Workaround
  930. ----------
  931. Previous calls to
  932. createAndAddParameter (paramID, paramName, ...);
  933. can be directly replaced with
  934. using Parameter = AudioProcessorValueTreeState::Parameter;
  935. createAndAddParameter (std::make_unique<Parameter> (paramID, paramName, ...));
  936. but an even better approach is to use the new AudioProcessorValueTreeState
  937. constructor where you can pass both RangedAudioParameters and
  938. AudioProcessorParameterGroups of RangedAudioParameters to the
  939. AudioProcessorValueTreeState and initialise the ValueTree simultaneously.
  940. Rationale
  941. ---------
  942. The new createAndAddParameter method is much more flexible and enables any
  943. parameter types derived from RangedAudioParameter to be managed by the
  944. AudioProcessorValueTreeState.
  945. Change
  946. ------
  947. The Projucer's per-exporter Android SDK/NDK path options have been removed.
  948. Possible Issues
  949. ---------------
  950. Projects that previously used these fields may no longer build.
  951. Workaround
  952. ----------
  953. Use the Projucer's global paths settings to point to these directories, either
  954. by opening the "Projucer/File->Global Paths..." menu item or using the
  955. "--set-global-search-path" command-line option.
  956. Rationale
  957. ---------
  958. Having multiple places where the paths could be set was confusing and could
  959. cause unexpected mismatches.
  960. Change
  961. ------
  962. SystemStats::getDeviceDescription() will now return the device code on iOS e.g.
  963. "iPhone7, 2" for an iPhone 6 instead of just "iPhone".
  964. Possible Issues
  965. ---------------
  966. Code that previously relied on this method returning either explicitly "iPhone"
  967. or "iPad" may no longer work.
  968. Workaround
  969. ----------
  970. Modify this code to handle the new device code string e.g. by changing:
  971. SystemStats::getDeviceDescription() == "iPhone";
  972. to
  973. SystemStats::getDeviceDescription().contains ("iPhone");.
  974. Rationale
  975. ---------
  976. The exact device model can now be deduced from this information instead of just
  977. the device family.
  978. Change
  979. ------
  980. DragAndDropContainer::performExternalDragDropOfFiles() and
  981. ::performExternalDragDropOfText() are now asynchronous on Windows.
  982. Possible Issues
  983. ---------------
  984. Code that previously relied on these operations being synchronous and blocking
  985. until completion will no longer work as the methods will return immediately and
  986. run asynchronously.
  987. Workaround
  988. ----------
  989. Use the callback argument that has been added to these methods to register a
  990. lambda that will be called when the operation has been completed.
  991. Rationale
  992. ---------
  993. The behaviour of these methods is now consistent across all platforms and the
  994. method no longer blocks the message thread on Windows.
  995. Change
  996. ------
  997. AudioProcessor::getTailLengthSeconds can now return infinity for
  998. VST/VST3/AU/AUv3.
  999. Possible Issues
  1000. ---------------
  1001. If you are using the result of getTailLengthSeconds to allocate a buffer in
  1002. your host, then your host will now likely crash when loading a plug-in with an
  1003. infinite tail time.
  1004. Workaround
  1005. ----------
  1006. Rewrite your code to not use the result of getTailLengthSeconds directly to
  1007. allocate a buffer.
  1008. Rationale
  1009. ---------
  1010. Before this change there was no way for a JUCE plug-in to report an infinite
  1011. tail time.
  1012. Version 5.3.2
  1013. =============
  1014. Change
  1015. ------
  1016. The behaviour of an UndoManager used by an AudioProcessorValueTreeState has
  1017. been improved.
  1018. Possible Issues
  1019. ---------------
  1020. If your plug-in contains an UndoManager used by an AudioProcessorValueTreeState
  1021. and relies upon the old behaviour of the UndoManager then it is possible that
  1022. the new behaviour is no longer appropriate for your use case.
  1023. Workaround
  1024. ----------
  1025. Use an external UndoManager to reproduce the old behaviour manually.
  1026. Rationale
  1027. ---------
  1028. This change fixes a few bugs in the behaviour of an UndoManager used by an
  1029. AudioProcessorValueTreeState.
  1030. Change
  1031. ------
  1032. JUCE no longer supports OS X deployment targets earlier than 10.7.
  1033. Possible Issues
  1034. ---------------
  1035. If you were previously targeting OS X 10.5 or 10.6 you will no longer be able
  1036. to build JUCE-based products compatible with those platforms.
  1037. Workaround
  1038. ----------
  1039. None. With the appropriate JUCE licence you may be able to backport new JUCE
  1040. features, but there will be no official support for this.
  1041. Rationale
  1042. ---------
  1043. Increasing the minimum supported OS X version allows the JUCE codebase to make
  1044. use of the more modern C++ features found in the 10.7 standard library, which
  1045. in turn will increase thread and memory safety.
  1046. Version 5.3.0
  1047. =============
  1048. Change
  1049. ------
  1050. The JUCE examples have been cleaned up, modernised and converted into PIPs
  1051. (Projucer Instant Projects). The JUCE Demo has been removed and replaced by the
  1052. DemoRunner application and larger projects such as the Audio Plugin Host and
  1053. the Network Graphics Demo have been moved into the extras directory.
  1054. Possible Issues
  1055. ---------------
  1056. 1. Due to the large number of changes that have occurred in the JUCE Git
  1057. repository, pulling this version may result in a messy folder structure with
  1058. empty directories that have been removed.
  1059. 2. The JUCE Demo project is no longer in the JUCE repository.
  1060. 3. The Audio Plugin Host project has moved from the examples directory to the
  1061. extras directory.
  1062. Workaround
  1063. ----------
  1064. 1. Run a Git clean command (git clean -xdf) in your JUCE directory to remove
  1065. all untracked files, directories and build products.
  1066. 2. The new DemoRunner application, located in extras/DemoRunner, can be used to
  1067. preview all the JUCE examples and see the code side-by-side.
  1068. 3. Change any file paths that depended on the plugin host project being located
  1069. in the examples directory to use the extras directory instead.
  1070. Rationale
  1071. ---------
  1072. The JUCE examples had inconsistent naming, coding styles and the projects and
  1073. build products took up a large amount of space in the repository. Replacing
  1074. them with PIPs reduces the file size and allows us to categorise the examples
  1075. better, as well as cleaning up the code.
  1076. Change
  1077. ------
  1078. When hosting plug-ins all AudioProcessor methods of managing parameters that
  1079. take a parameter index as an argument have been deprecated.
  1080. Possible Issues
  1081. ---------------
  1082. A single assertion will be fired in debug builds on the first use of a
  1083. deprecated function.
  1084. Workaround
  1085. ----------
  1086. When hosting plug-ins you should use the AudioProcessor::getParameters() method
  1087. and interact with parameters via the returned array of
  1088. AudioProcessorParameters. For a short-term fix you can also continue past the
  1089. assertion in your debugger, or temporarily modify the JUCE source code to
  1090. remove it.
  1091. Rationale
  1092. ---------
  1093. Given the structure of JUCE's API it is impossible to deprecate these functions
  1094. using only compile-time messages. Therefore a single assertion, which can be
  1095. safely ignored, serves to indicate that these functions should no longer be
  1096. used. The move away from the AudioProcessor methods both improves the interface
  1097. to that class and makes ongoing development work much easier.
  1098. Change
  1099. ------
  1100. This InAppPurchases class is now a JUCE Singleton. This means that you need
  1101. to get an instance via InAppPurchases::getInstance(), instead of storing a
  1102. InAppPurchases object yourself.
  1103. Possible Issues
  1104. ---------------
  1105. Any code using InAppPurchases needs to be updated to retrieve a singleton
  1106. pointer to InAppPurchases.
  1107. Workaround
  1108. ----------
  1109. Instead of holding a InAppPurchase member yourself, you should get an instance
  1110. via InAppPurchases::getInstance(), e.g.
  1111. instead of:
  1112. InAppPurchases iap;
  1113. iap.purchaseProduct (...);
  1114. call:
  1115. InAppPurchases::getInstance()->purchaseProduct (...);
  1116. Rationale
  1117. ---------
  1118. This change was required to fix an issue on Android where on failed transaction
  1119. a listener would not get called.
  1120. Change
  1121. ------
  1122. JUCE's MPE classes have been updated to reflect the official specification
  1123. recently approved by the MIDI Manufacturers Association (MMA).
  1124. Possible Issues
  1125. ---------------
  1126. The most significant changes have occurred in the MPEZoneLayout classes and
  1127. programs using the higher level MPE classes such as MPEInstrument,
  1128. MPESynthesiser, MPESynthesiserBase and MPESynthesiserVoice should be
  1129. unaffected.
  1130. Previously, any MIDI channel from 1 - 15 could be selected to be the master
  1131. channel of an MPE zone, with a specified number of member channels ascending
  1132. from the master channel + 1. However, in the new specification this has been
  1133. simplified so that a device only has a lower and/or an upper zone, where the
  1134. lower zone has master channel 1 and assigns new member channels ascending from
  1135. channel 2 and the upper zone has master channel 16 and assigns new member
  1136. channels descending from channel 15.
  1137. Workaround
  1138. ----------
  1139. Use the MPEZoneLayout::setLowerZone() and MPEZoneLayout::setUpperZone() methods
  1140. to set zone layouts.
  1141. Any UI that allows users to select and set zones on an MPE instrument should
  1142. also be updated to reflect the specification changes.
  1143. Rationale
  1144. ---------
  1145. The MPE classes in JUCE are out of date and should be updated to reflect the
  1146. new, official MPE standard.
  1147. Version 5.2.1
  1148. =============
  1149. Change
  1150. ------
  1151. Calling JUCEApplicationBase::quit() on Android will now really quit the app,
  1152. rather than just placing it in background. Starting with API level 21 (Android
  1153. 5.0), the app will not appear in recent apps list after calling quit(). Prior
  1154. to API 21, the app will still appear in recent app lists but when a user
  1155. chooses the app, a new instance of the app will be started.
  1156. Possible Issues
  1157. ---------------
  1158. Any code calling JUCEApplicationBase::quit() to place the app in background
  1159. will close the app instead.
  1160. Workaround
  1161. ----------
  1162. Use Process::hide().
  1163. Rationale
  1164. ---------
  1165. The old behaviour JUCEApplicationBase::quit() was confusing JUCE code, as a new
  1166. instance of JUCE app was attempted to be created, while the older instance was
  1167. still running in background. This would result in assertions when starting a
  1168. second instance.
  1169. Change
  1170. ------
  1171. On Windows, release builds will now link to the dynamic C++ runtime by default
  1172. Possible Issues
  1173. ---------------
  1174. If you are creating a new .jucer project, then your plug-in will now link to
  1175. the dynamic C++ runtime by default, which means that you MUST ensure that the
  1176. C++ runtime libraries exist on your customer's computers.
  1177. Workaround
  1178. ----------
  1179. If you are only targeting Windows 10, then the C++ runtime is now part of the
  1180. system core components and will always exist on the computers of your customers
  1181. (just like kernel332.dll, for example). If you are targeting Windows versions
  1182. between Vista and Windows 10, then you should build your plug-in with the
  1183. latest updated version of VS2015 or later, which ensures that it's linked to
  1184. the universal runtime. Universal runtime is part of the system's core libraries
  1185. on Windows 10 and on Windows versions Vista to 8.1, it will be available on
  1186. your customer's computers via Windows Update. Unfortunately, if your customer
  1187. has just installed Windows 8.1 to Vista on a fresh computer, then there is a
  1188. chance that the update mechanism for the universal runtime hasn't triggered yet
  1189. and your plug-in may still fail. Your installer should prompt the user to
  1190. install all the Windows updates in this case or you can deploy the universal
  1191. runtime as a redistributable with your installer. If you are targeting earlier
  1192. versions of Windows then you should always include the runtime as a
  1193. redistributable with your plug-in's installer. Alternatively, you can change
  1194. the runtime linking to static (however, see 'Rationale' section).
  1195. Rationale
  1196. ---------
  1197. In a recent update to Windows 10, Microsoft has limited the number of fiber
  1198. local storage (FLS) slots per process. Effectively, this limits how many
  1199. plug-ins with static runtime linkage can be loaded into a DAW. In the worst
  1200. case, this limits the total number of plug-ins to a maximum of 64 plug-ins.
  1201. There is no workaround for DAW vendors and the only solution is to push plug-in
  1202. vendors to use the dynamic runtime. To help with this, JUCE has decided to make
  1203. dynamic runtime linkage the default in JUCE.
  1204. Change
  1205. ------
  1206. AudioProcessorGraph interface has changed in a number of ways - Node objects
  1207. are now reference counted, there are different accessor methods to iterate
  1208. them, and misc other small improvements to the API
  1209. Possible Issues
  1210. ---------------
  1211. The changes won't cause any silent errors in user code, but will require some
  1212. manual refactoring
  1213. Workaround
  1214. ----------
  1215. Just find equivalent new methods to replace existing code.
  1216. Rationale
  1217. ---------
  1218. The graph class was extremely old and creaky, and these changes is the start of
  1219. an improvement process that should eventually result in it being broken down
  1220. into fundamental graph building block classes for use in other contexts.
  1221. Version 5.2.0
  1222. =============
  1223. Change
  1224. ------
  1225. Viewport now enables "scroll on drag" mode by default on Android and iOS.
  1226. Possible Issues
  1227. ---------------
  1228. Any code relying on "scroll on drag" mode being turned off by default, should
  1229. disable it manually.
  1230. Workaround
  1231. ----------
  1232. None.
  1233. Rationale
  1234. ---------
  1235. It is expected on mobile devices to be able to scroll a list by just a drag,
  1236. rather than using a dedicated scrollbar. The scrollbar is still available
  1237. though if needed.
  1238. Change
  1239. ------
  1240. The previous setting of Android exporter "Custom manifest xml elements"
  1241. creating child nodes of <application> element has been replaced by "Custom
  1242. manifest XML content" setting that allows to specify the content of the entire
  1243. manifest instead. Any previously values of the old setting will be used in the
  1244. new setting by default, and they will need changing as mentioned in Workaround.
  1245. The custom content will be merged with the content auto-generated by Projucer.
  1246. Any custom elements or custom attributes will override the ones set by
  1247. Projucer. Projucer will also automatically add any missing and required
  1248. elements and attributes.
  1249. Possible Issues
  1250. ---------------
  1251. If a Projucer project used "Custom manifest xml elements" field, the value will
  1252. no longer be compatible with the project generated in the latest Projucer
  1253. version. The solution is very simple and quick though, as mentioned in the
  1254. Workaround section.
  1255. Workaround
  1256. ----------
  1257. For any elements previously used, simply embed them explicitly in
  1258. <manifest><application> elements, for example instead of:
  1259. <meta-data android:name="paramId1" android:value="paramValue1"/>
  1260. <meta-data android:name="paramId2" android:value="paramValue2"/>
  1261. simply write:
  1262. <manifest>
  1263. <application>
  1264. <meta-data android:name="paramId1" android:value="paramValue1"/>
  1265. <meta-data android:name="paramId2" android:value="paramValue2"/>
  1266. </application>
  1267. </manifest>
  1268. Rationale
  1269. ---------
  1270. To maintain the high level of flexibility of generated Android projects and to
  1271. avoid creating fields in Projucer for every possible future parameter, it is
  1272. simpler to allow to set up the required parameters manually. This way it is not
  1273. only possible to add any custom elements but it is also possible to override
  1274. the default attributes assigned by Projucer for the required elements. For
  1275. instance, if the default value of <supports-screens> element is not
  1276. satisfactory because you want a support for x-large screens only, simply set
  1277. "Custom manifest XML content" to:
  1278. <manifest>
  1279. <supports-screens android:xlargeScreens="true"/>
  1280. </manifest>
  1281. Version 5.1.2
  1282. =============
  1283. Change
  1284. ------
  1285. The method used to classify AudioUnit, VST3 and AAX plug-in parameters as
  1286. either continuous or discrete has changed, and AudioUnit and AudioUnit v3
  1287. parameters are marked as high precision by default.
  1288. Possible Issues
  1289. ---------------
  1290. Plug-ins: DAW projects with automation data written by an AudioUnit, AudioUnit
  1291. v3 VST3 or AAX plug-in built with JUCE version 5.1.1 or earlier may load
  1292. incorrectly when opened by an AudioUnit, AudioUnit v3, VST3 or AAX plug-in
  1293. built with JUCE version 5.1.2 and later.
  1294. Hosts: The AudioPluginInstance::getParameterNumSteps method now returns correct
  1295. values for AU and VST3 plug-ins.
  1296. Workaround
  1297. ----------
  1298. Plug-ins: Enable JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE in the
  1299. juce_audio_plugin_client module config page in the Projucer.
  1300. Hosts: Use AudioPluginInstance::getDefaultNumParameterSteps as the number of
  1301. steps for all parameters.
  1302. Rationale
  1303. ---------
  1304. The old system for presenting plug-in parameters to a host as either continuous
  1305. or discrete is inconsistent between plug-in types and lacks sufficient
  1306. flexibility. This change harmonises the behaviour and allows individual
  1307. parameters to be marked as continuous or discrete. If AudioUnit and AudioUnit
  1308. v3 parameters are not marked as high precision then hosts like Logic Pro only
  1309. offer a limited number of parameter values, which again produces different
  1310. behaviour for different plug-in types.
  1311. Change
  1312. ------
  1313. A new FrameRateType fps23976 has been added to AudioPlayHead,
  1314. Possible Issues
  1315. ---------------
  1316. Previously JUCE would report the FrameRateType fps24 for both 24 and 23.976
  1317. fps. If your code uses switch statements (or similar) to handle all possible
  1318. frame rate types, then this change may cause it to fall through.
  1319. Workaround
  1320. ----------
  1321. Add fps23976 to your switch statement and handle it appropriately.
  1322. Rationale
  1323. ---------
  1324. JUCE should be able to handle all popular frame rate codes but was missing
  1325. support for 23.976.
  1326. Change
  1327. ------
  1328. The String (bool) constructor and operator<< (String&, bool) have been
  1329. explicitly deleted.
  1330. Possible Issues
  1331. ---------------
  1332. Previous code which relied on an implicit bool to int type conversion to
  1333. produce a String will not compile.
  1334. Workaround
  1335. ----------
  1336. Cast your bool to an integer to generate a string representation of it.
  1337. Rationale
  1338. ---------
  1339. Letting things implicitly convert to bool to produce a String opens the door to
  1340. all kinds of nasty type conversion edge cases. Furthermore, before this change,
  1341. MacOS would automatically convert bools to ints but this wouldn't occur on
  1342. different platform. Now the behaviour is consistent across all operating
  1343. systems supported by JUCE.
  1344. Change
  1345. ------
  1346. The writeAsJSON virtual method of the DynamicObject class requires an
  1347. additional parameter, maximumDecimalPlaces, to specify the maximum precision of
  1348. floating point numbers.
  1349. Possible Issues
  1350. ---------------
  1351. Classes which inherit from DynamicObject and override this method will need to
  1352. update their method signature.
  1353. Workaround
  1354. ----------
  1355. Your custom DynamicObject class can choose to ignore the additional parameter
  1356. if you don't wish to support this behaviour.
  1357. Rationale
  1358. ---------
  1359. When serialising the results of calculations to JSON the rounding of floating
  1360. point numbers can result in numbers with 17 significant figures where only a
  1361. few are required. This change to DynamicObject is required to support
  1362. truncating those numbers.
  1363. Version 5.1.0
  1364. =============
  1365. Change
  1366. ------
  1367. The JUCE_COMPILER_SUPPORTS_LAMBDAS preprocessor macro has been removed.
  1368. Possible Issues
  1369. ---------------
  1370. If your project is using JUCE_COMPILER_SUPPORTS_LAMBDAS in your source code
  1371. then it will likely evaluate to "false" and you could end up unnecessarily
  1372. using code paths which avoid lambda functions.
  1373. Workaround
  1374. ----------
  1375. Remove the usage of JUCE_COMPILER_SUPPORTS_LAMBDAS from your code.
  1376. Rationale
  1377. ---------
  1378. Lambda functions are now available on all platforms that JUCE supports.
  1379. Change
  1380. ------
  1381. The option to set the C++ language standard is now located in the project
  1382. settings instead of the build configuration settings.
  1383. Possible Issues
  1384. ---------------
  1385. Projects that had a specific version of the C++ language standard set for
  1386. exporter build configurations will instead use the default (C++11) when
  1387. re-saving with the new Projucer.
  1388. Workaround
  1389. ----------
  1390. Change the "C++ Language Standard" setting in the main project settings to the
  1391. required version - the Projucer will add this value to the exported project as
  1392. a compiler flag when saving exporters.
  1393. Rationale
  1394. ---------
  1395. Having a different C++ language standard option for each build configuration
  1396. was unnecessary and was not fully implemented for all exporters. Changing it to
  1397. a per-project settings means that the preference will propagate to all
  1398. exporters and only needs to be set in one place.
  1399. Change
  1400. ------
  1401. PopupMenus now scale according to the AffineTransform and scaling factor of
  1402. their target components.
  1403. Possible Issues
  1404. ---------------
  1405. Developers who have manually scaled their PopupMenus to fit the scaling factor
  1406. of the parent UI will now have the scaling applied two times in a row.
  1407. Workaround
  1408. ----------
  1409. 1. Do not apply your own manual scaling to make your popups match the UI
  1410. scaling
  1411. or
  1412. 2. Override the Look&Feel method
  1413. PopupMenu::LookAndFeelMethods::shouldPopupMenuScaleWithTargetComponent and
  1414. return false. See
  1415. https://github.com/juce-framework/JUCE/blob/c288c94c2914af20f36c03ca9c5401fcb555e4e9/modules/juce_gui_basics/menus/juce_PopupMenu.h#725
  1416. Rationale
  1417. ---------
  1418. Previously, PopupMenus would not scale if the GUI of the target component (or
  1419. any of it’s parents) were scaled. The only way to scale PopupMenus was via the
  1420. global scaling factor. This had several drawbacks as the global scaling factor
  1421. would scale everything. This was especially problematic in plug-in editors.
  1422. Change
  1423. ------
  1424. Removed the setSecurityFlags() method from the Windows implementation of
  1425. WebInputStream as it disabled HTTPS security features.
  1426. Possible Issues
  1427. ---------------
  1428. Any code previously relying on connections to insecure webpages succeeding will
  1429. no longer work.
  1430. Workaround
  1431. ----------
  1432. Check network connectivity on Windows and re-write any code that relied on
  1433. insecure connections.
  1434. Rationale
  1435. ---------
  1436. The previous behaviour resulted in network connections on Windows having all
  1437. the HTTPS security features disabled, exposing users to network attacks. HTTPS
  1438. connections on Windows are now secure and will fail when connecting to an
  1439. insecure web address.
  1440. Change
  1441. ------
  1442. Pointer arithmetic on a pointer will have the same result regardless if it is
  1443. wrapped in JUCE's Atomic class or not.
  1444. Possible Issues
  1445. ---------------
  1446. Any code using pointer arithmetic on Atomic<T*> will now have a different
  1447. result leading to undefined behaviour or crashes.
  1448. Workaround
  1449. ----------
  1450. Re-write your code in a way that it does not depend on your pointer being
  1451. wrapped in JUCE's Atomic or not. See rationale.
  1452. Rationale
  1453. ---------
  1454. Before this change, pointer arithmetic with JUCE's Atomic type would yield
  1455. confusing results. For example, the following code would assert before this
  1456. change:
  1457. int* a; Atomic<int*> b;
  1458. jassert (++a == ++b);
  1459. Pointer a in the above code would be advanced by sizeof(int) whereas the JUCE's
  1460. Atomic always advances it's underlying pointer by a single byte. The same is
  1461. true for operator+=/operator-= and operator--. The difference in behaviour is
  1462. confusing and unintuitive. Furthermore, this aligns JUCE's Atomic type with
  1463. std::atomic.
  1464. Version 4.3.1
  1465. =============
  1466. Change
  1467. ------
  1468. JUCE has changed the way native VST3/AudioUnit parameter ids are calculated.
  1469. Possible Issues
  1470. ---------------
  1471. DAW projects with automation data written by an AudioUnit or VST3 plug-in built
  1472. with pre JUCE 4.3.1 versions will load incorrectly when opened by an AudioUnit
  1473. or VST3 built with JUCE versions 4.3.1 and later. Plug-ins using
  1474. JUCE_FORCE_USE_LEGACY_PARAM_IDS are not affected.
  1475. Workaround
  1476. ----------
  1477. Disable JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS in the
  1478. juce_audio_plugin_client module config page in the Projucer. For new plug-ins,
  1479. be sure to use the default value for this property.
  1480. Rationale
  1481. --------
  1482. JUCE needs to convert between its own JUCE parameter id format (strings) to the
  1483. native parameter id formats of the various plug-in backends. For VST3 and
  1484. AudioUnits, JUCE uses a hash function to generate a numeric id. However, some
  1485. VST3/AudioUnit hosts (specifically Studio One) have a bug that ignore any
  1486. parameters that have a negative parameter id. Therefore, the hash function for
  1487. VST3/AudioUnits needed to be changed to only return positive-valued hashes.
  1488. Version 4.3.0
  1489. =============
  1490. Change
  1491. ------
  1492. A revised multi-bus API was released which supersedes the previously flawed
  1493. multi-bus API - JUCE versions 4.0.0 - 4.2.4 (inclusive).
  1494. Possible Issues
  1495. ---------------
  1496. If you have developed a plug-in with JUCE versions 4.0.0 - 4.2.4 (inclusive),
  1497. then you will need to update your plug-in to the new multi-bus API. Pre JUCE
  1498. 4.0.0 plug-ins are not affected apart from other breaking changes listed in
  1499. this document.
  1500. Woraround
  1501. ---------
  1502. None.
  1503. Rationale
  1504. --------
  1505. A flawed multi-bus API was introduced with JUCE versions 4.0.0 up until version
  1506. 4.2.4 (inclusive) which was not API compatible with pre JUCE 4 plug-ins. JUCE
  1507. 4.3.0 releases a revised multi-bus API which restores pre JUCE 4 API
  1508. compatibility. However, the new multi-bus API is not compatible with the flawed
  1509. multi-bus API (JUCE version 4.0.0 - 4.2.4).
  1510. Change
  1511. ------
  1512. JUCE now generates the AAX plug-in bus layout configuration id independent from
  1513. the position as it appears in the Projucer’s legacy "Channel layout
  1514. configuration" field.
  1515. Possible Issues
  1516. ---------------
  1517. ProTools projects generated with a < 4.3.0 JUCE versions of your plug-in, may
  1518. load the incorrect bus configuration when upgrading your plug-in to >= 4.3.0
  1519. versions of JUCE.
  1520. Workaround
  1521. ----------
  1522. Implement AudioProcessor’s getAAXPluginIDForMainBusConfig callback to manually
  1523. override which AAX plug-in id is associated to a specific bus layout of your
  1524. plug-in. This workaround is only necessary if you have released your plug-in
  1525. built with a version previous to JUCE 4.3.0.
  1526. Rationale
  1527. --------
  1528. The new multi-bus API offers more features, flexibility and accuracy in
  1529. specifying bus layouts which cannot be expressed by the Projucer’s legacy
  1530. "Channel layout configuration" field. The native plug-in format backends use
  1531. the new multi-bus callback APIs to negotiate channel layouts with the host -
  1532. including the AAX plug-in ids assigned to specific bus layouts. With the
  1533. callback API, there is no notion of an order in which the channel
  1534. configurations appear - as was the case with the legacy "Channel layout
  1535. configuration" field - and therefore cannot be used to generate the AAX plug-in
  1536. id. To remain backward compatible to pre JUCE 4.0.0 plug-ins, JUCE does
  1537. transparently convert the legacy "Channel layout configuration" field to the
  1538. new callback based multi-bus API, but this does not take the order into account
  1539. in which the channel configurations appear in the legacy "Channel layout
  1540. configuration" field.
  1541. Version 4.2.1
  1542. =============
  1543. Change
  1544. ------
  1545. JUCE now uses the paramID property used in AudioProcessorParameterWithID to
  1546. uniquely identify parameters to the host.
  1547. Possible Issues
  1548. ---------------
  1549. DAW projects with automation data written by an audio plug-in built with pre
  1550. JUCE 4.2.1 will load incorrectly when opened by an audio plug-in built with
  1551. JUCE 4.2.1 and later.
  1552. Workaround
  1553. ----------
  1554. Enable JUCE_FORCE_USE_LEGACY_PARAM_IDS in the juce_audio_plugin_client module config
  1555. page in the Projucer. For new plug-ins, be sure to disable this property.
  1556. Rationale
  1557. --------
  1558. Each parameter of the AudioProcessor has an id associated so that the plug-in’s
  1559. host can uniquely identify parameters. The id has a different data-type for
  1560. different plug-in types (for example VST uses integers, AAX uses string
  1561. identifiers). Before 4.2.1, JUCE generated the parameter id by using the index
  1562. of the parameter, i.e. the first parameter had id zero, the second parameter
  1563. had id one, etc. This caused problems for certain plug-in types where JUCE
  1564. needs to add internal parameters to the plug-in (for example VST3 requires the
  1565. bypass control to be a parameter - so JUCE automatically creates this parameter
  1566. for you in the VST3 backend). This causes subtle problems if a parameter is
  1567. added to an update of an already published plug-in. The new parameter’s id
  1568. would be identical to the id of the bypass parameter in old versions of your
  1569. plug-in, causing seemingly random plug-in bypass behaviour when user’s upgrade
  1570. their plug-in.
  1571. Most plug-in backends differentiate between a parameter’s id an index, so this
  1572. distinction was adopted starting with JUCE 4.2.1 by deriving the parameter’s
  1573. unique id from the paramID property of AudioProcessorParameterWithID class.