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.

2895 lines
93KB

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