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.

2848 lines
92KB

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