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.

2217 lines
70KB

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