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.

2798 lines
90KB

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