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.

2300 lines
73KB

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