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.

845 lines
29KB

  1. JUCE breaking changes
  2. =====================
  3. Develop
  4. =======
  5. Change
  6. ------
  7. The VST2 SDK embedded within JUCE has been removed.
  8. Possible Issues
  9. ---------------
  10. 1. Building or hosting VST2 plug-ins requires header files from the VST2 SDK,
  11. which is no longer part of JUCE.
  12. 2. Building a VST2-compatible VST3 plug-in (the previous default behaviour in
  13. JUCE) requires header files from the VST2 SDK, which is no longer part of
  14. JUCE. When a new JUCE plug-in project is created the option
  15. JUCE_VST3_CAN_REPLACE_VST2 will be set to zero.
  16. Workaround
  17. ----------
  18. 1. The VST2 SDK can be obtained from the vstsdk3610_11_06_2018_build_37 (or
  19. older) VST3 SDK or JUCE version 5.3.2. You should put the VST2 SDK in your
  20. header search paths.
  21. 2. For new plug-in projects where you will be releasing both a VST2 and VST3
  22. version, and you want the VST3 plug-in to replace the VST2 plug-in in
  23. hosts that support it, then you should enable the JUCE_VST3_CAN_REPLACE_VST2
  24. option.
  25. Rationale
  26. ---------
  27. Distributing VST2 plug-ins requires a VST2 license from Steinberg. Following
  28. Steinberg's removal of the VST2 SDK from their public SDKs we are also removing
  29. the VST2 SDK from the JUCE codebase.
  30. Change
  31. ------
  32. The AudioProcessorValueTreeState::createAndAddParameter function has been
  33. deprecated.
  34. Possible Issues
  35. ---------------
  36. Deprecation warnings will be seen when compiling code which uses this function
  37. and eventually builds will fail when it is later removed from the API.
  38. Workaround
  39. ----------
  40. Previous calls to
  41. createAndAddParameter (paramID, paramName, ...);
  42. can be directly replaced with
  43. using Parameter = AudioProcessorValueTreeState::Parameter;
  44. createAndAddParameter (std::make_unique<Parameter> (paramID, paramName, ...));
  45. but an even better approach is to use the new AudioProcessorValueTreeState
  46. constructor where you can pass both RangedAudioParameters and
  47. AudioProcessorParameterGroups of RangedAudioParameters to the
  48. AudioProcessorValueTreeState and initialise the ValueTree simultaneously.
  49. Rationale
  50. ---------
  51. The new createAndAddParameter method is much more flexible and enables any
  52. parameter types derived from RangedAudioParameter to be managed by the
  53. AudioProcessorValueTreeState.
  54. Change
  55. ------
  56. The Projucer's per-exporter Android SDK/NDK path options have been removed.
  57. Possible Issues
  58. ---------------
  59. Projects that previously used these fields may no longer build.
  60. Workaround
  61. ----------
  62. Use the Projucer's global paths settings to point to these directories, either
  63. by opening the "Projucer/File->Global Paths..." menu item or using the
  64. "--set-global-search-path" command-line option.
  65. Rationale
  66. ---------
  67. Having multiple places where the paths could be set was confusing and could
  68. cause unexpected mismatches.
  69. Change
  70. ------
  71. SystemStats::getDeviceDescription() will now return the device code on iOS e.g.
  72. "iPhone7, 2" for an iPhone 6 instead of just "iPhone".
  73. Possible Issues
  74. ---------------
  75. Code that previously relied on this method returning either explicitly "iPhone"
  76. or "iPad" may no longer work.
  77. Workaround
  78. ----------
  79. Modify this code to handle the new device code string e.g. by changing:
  80. SystemStats::getDeviceDescription() == "iPhone";
  81. to
  82. SystemStats::getDeviceDescription().contains ("iPhone");.
  83. Rationale
  84. ---------
  85. The exact device model can now be deduced from this information instead of just
  86. the device family.
  87. Change
  88. ------
  89. DragAndDropContainer::performExternalDragDropOfFiles() and
  90. ::performExternalDragDropOfText() are now asynchronous on Windows.
  91. Possible Issues
  92. ---------------
  93. Code that previously relied on these operations being synchronous and blocking
  94. until completion will no longer work as the methods will return immediately and
  95. run asynchronously.
  96. Workaround
  97. ----------
  98. Use the callback argument that has been added to these methods to register a
  99. lambda that will be called when the operation has been completed.
  100. Rationale
  101. ---------
  102. The behaviour of these methods is now consistent across all platforms and the
  103. method no longer blocks the message thread on Windows.
  104. Change
  105. ------
  106. AudioProcessor::getTailLengthSeconds can now return infinity for
  107. VST/VST3/AU/AUv3.
  108. Possible Issues
  109. ---------------
  110. If you are using the result of getTailLengthSeconds to allocate a buffer in
  111. your host, then your host will now likely crash when loading a plug-in with an
  112. infinite tail time.
  113. Workaround
  114. ----------
  115. Re-write your code to not use the result of getTailLengthSeconds directly to
  116. allocate a buffer.
  117. Rationale
  118. ---------
  119. Before this change there was no way for a JUCE plug-in to report an infinite
  120. tail time.
  121. Version 5.3.2
  122. =============
  123. Change
  124. ------
  125. The behaviour of an UndoManager used by an AudioProcessorValueTreeState has
  126. been improved.
  127. Possible Issues
  128. ---------------
  129. If your plug-in contains an UndoManager used by an AudioProcessorValueTreeState
  130. and relies upon the old behaviour of the UndoManager then it is possible that
  131. the new behaviour is no longer appropriate for your use case.
  132. Workaround
  133. ----------
  134. Use an external UndoManager to reproduce the old behaviour manually.
  135. Rationale
  136. ---------
  137. This change fixes a few bugs in the behaviour of an UndoManager used by an
  138. AudioProcessorValueTreeState.
  139. Change
  140. ------
  141. JUCE no longer supports OS X deployment targets earlier than 10.7.
  142. Possible Issues
  143. ---------------
  144. If you were previously targeting OS X 10.5 or 10.6 you will no longer be able
  145. to build JUCE-based products compatible with those platforms.
  146. Workaround
  147. ----------
  148. None. With the appropriate JUCE licence you may be able to backport new JUCE
  149. features, but there will be no official support for this.
  150. Rationale
  151. ---------
  152. Increasing the minimum supported OS X version allows the JUCE codebase to make
  153. use of the more modern C++ features found in the 10.7 standard library, which
  154. in turn will increase thread and memory safety.
  155. Version 5.3.0
  156. =============
  157. Change
  158. ------
  159. The JUCE examples have been cleaned up, modernised and converted into PIPs
  160. (Projucer Instant Projects). The JUCE Demo has been removed and replaced by the
  161. DemoRunner application and larger projects such as the Audio Plugin Host and
  162. the Network Graphics Demo have been moved into the extras directory.
  163. Possible Issues
  164. ---------------
  165. 1. Due to the large number of changes that have occurred in the JUCE Git
  166. repository, pulling this version may result in a messy folder structure with
  167. empty directories that have been removed.
  168. 2. The JUCE Demo project is no longer in the JUCE repository.
  169. 3. The Audio Plugin Host project has moved from the examples directory to the
  170. extras directory.
  171. Workaround
  172. ----------
  173. 1. Run a Git clean command (git clean -xdf) in your JUCE directory to remove
  174. all untracked files, directories and build products.
  175. 2. The new DemoRunner application, located in extras/DemoRunner, can be used to
  176. preview all the JUCE examples and see the code side-by-side.
  177. 3. Change any file paths that depended on the plugin host project being located
  178. in the examples directory to use the extras directory instead.
  179. Rationale
  180. ---------
  181. The JUCE examples had inconsistent naming, coding styles and the projects and
  182. build products took up a large amount of space in the repository. Replacing
  183. them with PIPs reduces the file size and allows us to categorise the examples
  184. better, as well as cleaning up the code.
  185. Change
  186. ------
  187. When hosting plug-ins all AudioProcessor methods of managing parameters that
  188. take a parameter index as an argument have been deprecated.
  189. Possible Issues
  190. ---------------
  191. A single assertion will be fired in debug builds on the first use of a
  192. deprecated function.
  193. Workaround
  194. ----------
  195. When hosting plug-ins you should use the AudioProcessor::getParameters() method
  196. and interact with parameters via the returned array of
  197. AudioProcessorParameters. For a short-term fix you can also continue past the
  198. assertion in your debugger, or temporarily modify the JUCE source code to
  199. remove it.
  200. Rationale
  201. ---------
  202. Given the structure of JUCE's API it is impossible to deprecate these functions
  203. using only compile-time messages. Therefore a single assertion, which can be
  204. safely ignored, serves to indicate that these functions should no longer be
  205. used. The move away from the AudioProcessor methods both improves the interface
  206. to that class and makes ongoing development work much easier.
  207. Change
  208. ------
  209. This InAppPurchases class is now a JUCE Singleton. This means that you need
  210. to get an instance via InAppPurchases::getInstance(), instead of storing a
  211. InAppPurchases object yourself.
  212. Possible Issues
  213. ---------------
  214. Any code using InAppPurchases needs to be updated to retrieve a singleton
  215. pointer to InAppPurchases.
  216. Workaround
  217. ----------
  218. Instead of holding a InAppPurchase member yourself, you should get an instance
  219. via InAppPurchases::getInstance(), e.g.
  220. instead of:
  221. InAppPurchases iap;
  222. iap.purchaseProduct (...);
  223. call:
  224. InAppPurchases::getInstance()->purchaseProduct (...);
  225. Rationale
  226. ---------
  227. This change was required to fix an issue on Android where on failed transaction
  228. a listener would not get called.
  229. Change
  230. ------
  231. JUCE's MPE classes have been updated to reflect the official specification
  232. recently approved by the MIDI Manufacturers Association (MMA).
  233. Possible Issues
  234. ---------------
  235. The most significant changes have occurred in the MPEZoneLayout classes and
  236. programs using the higher level MPE classes such as MPEInstrument,
  237. MPESynthesiser, MPESynthesiserBase and MPESynthesiserVoice should be
  238. unaffected.
  239. Previously, any MIDI channel from 1 - 15 could be selected to be the master
  240. channel of an MPE zone, with a specified number of member channels ascending
  241. from the master channel + 1. However, in the new specification this has been
  242. simplified so that a device only has a lower and/or an upper zone, where the
  243. lower zone has master channel 1 and assigns new member channels ascending from
  244. channel 2 and the upper zone has master channel 16 and assigns new member
  245. channels descending from channel 15.
  246. Workaround
  247. ----------
  248. Use the MPEZoneLayout::setLowerZone() and MPEZoneLayout::setUpperZone() methods
  249. to set zone layouts.
  250. Any UI that allows users to select and set zones on an MPE instrument should
  251. also be updated to reflect the specification changes.
  252. Rationale
  253. ---------
  254. The MPE classes in JUCE are out of date and should be updated to reflect the
  255. new, official MPE standard.
  256. Version 5.2.1
  257. =============
  258. Change
  259. ------
  260. Calling JUCEApplicationBase::quit() on Android will now really quit the app,
  261. rather than just placing it in background. Starting with API level 21 (Android
  262. 5.0), the app will not appear in recent apps list after calling quit(). Prior
  263. to API 21, the app will still appear in recent app lists but when a user
  264. chooses the app, a new instance of the app will be started.
  265. Possible Issues
  266. ---------------
  267. Any code calling JUCEApplicationBase::quit() to place the app in background
  268. will close the app instead.
  269. Workaround
  270. ----------
  271. Use Process::hide().
  272. Rationale
  273. ---------
  274. The old behaviour JUCEApplicationBase::quit() was confusing JUCE code, as a new
  275. instance of JUCE app was attempted to be created, while the older instance was
  276. still running in background. This would result in assertions when starting a
  277. second instance.
  278. Change
  279. ------
  280. On Windows, release builds will now link to the dynamic C++ runtime by default
  281. Possible Issues
  282. ---------------
  283. If you are creating a new .jucer project, then your plug-in will now link to
  284. the dynamic C++ runtime by default, which means that you MUST ensure that the
  285. C++ runtime libraries exist on your customer's computers.
  286. Workaround
  287. ----------
  288. If you are only targeting Windows 10, then the C++ runtime is now part of the
  289. system core components and will always exist on the computers of your customers
  290. (just like kernel332.dll, for example). If you are targeting Windows versions
  291. between Vista and Windows 10, then you should build your plug-in with the
  292. latest updated version of VS2015 or later, which ensures that it's linked to
  293. the universal runtime. Universal runtime is part of the system's core libraries
  294. on Windows 10 and on Windows versions Vista to 8.1, it will be available on
  295. your customer's computers via Windows Update. Unfortunately, if your customer
  296. has just installed Windows 8.1 to Vista on a fresh computer, then there is a
  297. chance that the update mechanism for the universal runtime hasn't triggered yet
  298. and your plug-in may still fail. Your installer should prompt the user to
  299. install all the Windows updates in this case or you can deploy the universal
  300. runtime as a redistributable with your installer. If you are targeting earlier
  301. versions of Windows then you should always include the runtime as a
  302. redistributable with your plug-in's installer. Alternatively, you can change
  303. the runtime linking to static (however, see 'Rationale' section).
  304. Rationale
  305. ---------
  306. In a recent update to Windows 10, Microsoft has limited the number of fiber
  307. local storage (FLS) slots per process. Effectively, this limits how many
  308. plug-ins with static runtime linkage can be loaded into a DAW. In the worst
  309. case, this limits the total number of plug-ins to a maximum of 64 plug-ins.
  310. There is no workaround for DAW vendors and the only solution is to push plug-in
  311. vendors to use the dynamic runtime. To help with this, JUCE has decided to make
  312. dynamic runtime linkage the default in JUCE.
  313. Change
  314. ------
  315. AudioProcessorGraph interface has changed in a number of ways - Node objects
  316. are now reference counted, there are different accessor methods to iterate
  317. them, and misc other small improvements to the API
  318. Possible Issues
  319. ---------------
  320. The changes won't cause any silent errors in user code, but will require some
  321. manual refactoring
  322. Workaround
  323. ----------
  324. Just find equivalent new methods to replace existing code.
  325. Rationale
  326. ---------
  327. The graph class was extremely old and creaky, and these changes is the start of
  328. an improvement process that should eventually result in it being broken down
  329. into fundamental graph building block classes for use in other contexts.
  330. Version 5.2.0
  331. =============
  332. Change
  333. ------
  334. Viewport now enables "scroll on drag" mode by default on Android and iOS.
  335. Possible Issues
  336. ---------------
  337. Any code relying on "scroll on drag" mode being turned off by default, should
  338. disable it manually.
  339. Workaround
  340. ----------
  341. None.
  342. Rationale
  343. ---------
  344. It is expected on mobile devices to be able to scroll a list by just a drag,
  345. rather than using a dedicated scrollbar. The scrollbar is still available
  346. though if needed.
  347. Change
  348. ------
  349. The previous setting of Android exporter "Custom manifest xml elements"
  350. creating child nodes of <application> element has been replaced by "Custom
  351. manifest XML content" setting that allows to specify the content of the entire
  352. manifest instead. Any previously values of the old setting will be used in the
  353. new setting by default, and they will need changing as mentioned in Workaround.
  354. The custom content will be merged with the content auto-generated by Projucer.
  355. Any custom elements or custom attributes will override the ones set by
  356. Projucer. Projucer will also automatically add any missing and required
  357. elements and attributes.
  358. Possible Issues
  359. ---------------
  360. If a Projucer project used "Custom manifest xml elements" field, the value will
  361. no longer be compatible with the project generated in the latest Projucer
  362. version. The solution is very simple and quick though, as mentioned in the
  363. Workaround section.
  364. Workaround
  365. ----------
  366. For any elements previously used, simply embed them explicitly in
  367. <manifest><application> elements, for example instead of:
  368. <meta-data android:name="paramId1" android:value="paramValue1"/>
  369. <meta-data android:name="paramId2" android:value="paramValue2"/>
  370. simply write:
  371. <manifest>
  372. <application>
  373. <meta-data android:name="paramId1" android:value="paramValue1"/>
  374. <meta-data android:name="paramId2" android:value="paramValue2"/>
  375. </application>
  376. </manifest>
  377. Rationale
  378. ---------
  379. To maintain the high level of flexibility of generated Android projects and to
  380. avoid creating fields in Projucer for every possible future parameter, it is
  381. simpler to allow to set up the required parameters manually. This way it is not
  382. only possible to add any custom elements but it is also possible to override
  383. the default attributes assigned by Projucer for the required elements. For
  384. instance, if the default value of <supports-screens> element is not
  385. satisfactory because you want a support for x-large screens only, simply set
  386. "Custom manifest XML content" to:
  387. <manifest>
  388. <supports-screens android:xlargeScreens="true"/>
  389. </manifest>
  390. Version 5.1.2
  391. =============
  392. Change
  393. ------
  394. The method used to classify AudioUnit, VST3 and AAX plug-in parameters as
  395. either continuous or discrete has changed, and AudioUnit and AudioUnit v3
  396. parameters are marked as high precision by default.
  397. Possible Issues
  398. ---------------
  399. Plug-ins: DAW projects with automation data written by an AudioUnit, AudioUnit
  400. v3 VST3 or AAX plug-in built with JUCE version 5.1.1 or earlier may load
  401. incorrectly when opened by an AudioUnit, AudioUnit v3, VST3 or AAX plug-in
  402. built with JUCE version 5.1.2 and later.
  403. Hosts: The AudioPluginInstance::getParameterNumSteps method now returns correct
  404. values for AU and VST3 plug-ins.
  405. Workaround
  406. ----------
  407. Plug-ins: Enable JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE in the
  408. juce_audio_plugin_client module config page in the Projucer.
  409. Hosts: Use AudioPluginInstance::getDefaultNumParameterSteps as the number of
  410. steps for all parameters.
  411. Rationale
  412. ---------
  413. The old system for presenting plug-in parameters to a host as either continuous
  414. or discrete is inconsistent between plug-in types and lacks sufficient
  415. flexibility. This change harmonises the behaviour and allows individual
  416. parameters to be marked as continuous or discrete. If AudioUnit and AudioUnit
  417. v3 parameters are not marked as high precision then hosts like Logic Pro only
  418. offer a limited number of parameter values, which again produces different
  419. behaviour for different plug-in types.
  420. Change
  421. ------
  422. A new FrameRateType fps23976 has been added to AudioPlayHead,
  423. Possible Issues
  424. ---------------
  425. Previously JUCE would report the FrameRateType fps24 for both 24 and 23.976
  426. fps. If your code uses switch statements (or similar) to handle all possible
  427. frame rate types, then this change may cause it to fall through.
  428. Workaround
  429. ----------
  430. Add fps23976 to your switch statement and handle it appropriately.
  431. Rationale
  432. ---------
  433. JUCE should be able to handle all popular frame rate codes but was missing
  434. support for 23.976.
  435. Change
  436. ------
  437. The String (bool) constructor and operator<< (String&, bool) have been
  438. explicitly deleted.
  439. Possible Issues
  440. ---------------
  441. Previous code which relied on an implicit bool to int type conversion to
  442. produce a String will not compile.
  443. Workaround
  444. ----------
  445. Cast your bool to an integer to generate a string representation of it.
  446. Rationale
  447. ---------
  448. Letting things implicitly convert to bool to produce a String opens the door to
  449. all kinds of nasty type conversion edge cases. Furthermore, before this change,
  450. MacOS would automatically convert bools to ints but this wouldn't occur on
  451. different platform. Now the behaviour is consistent across all operating
  452. systems supported by JUCE.
  453. Change
  454. ------
  455. The writeAsJSON virtual method of the DynamicObject class requires an
  456. additional parameter, maximumDecimalPlaces, to specify the maximum precision of
  457. floating point numbers.
  458. Possible Issues
  459. ---------------
  460. Classes which inherit from DynamicObject and override this method will need to
  461. update their method signature.
  462. Workaround
  463. ----------
  464. Your custom DynamicObject class can choose to ignore the additional parameter
  465. if you don't wish to support this behaviour.
  466. Rationale
  467. ---------
  468. When serialising the results of calculations to JSON the rounding of floating
  469. point numbers can result in numbers with 17 significant figures where only a
  470. few are required. This change to DynamicObject is required to support
  471. truncating those numbers.
  472. Version 5.1.0
  473. =============
  474. Change
  475. ------
  476. The option to set the C++ language standard is now located in the project
  477. settings instead of the build configuration settings.
  478. Possible Issues
  479. ---------------
  480. Projects that had a specific version of the C++ language standard set for
  481. exporter build configurations will instead use the default (C++11) when
  482. re-saving with the new Projucer.
  483. Workaround
  484. ----------
  485. Change the "C++ Language Standard" setting in the main project settings to the
  486. required version - the Projucer will add this value to the exported project as
  487. a compiler flag when saving exporters.
  488. Rationale
  489. ---------
  490. Having a different C++ language standard option for each build configuration
  491. was unnecessary and was not fully implemented for all exporters. Changing it to
  492. a per-project settings means that the preference will propagate to all
  493. exporters and only needs to be set in one place.
  494. Change
  495. ------
  496. PopupMenus now scale according to the AffineTransform and scaling factor of
  497. their target components.
  498. Possible Issues
  499. ---------------
  500. Developers who have manually scaled their PopupMenus to fit the scaling factor
  501. of the parent UI will now have the scaling applied two times in a row.
  502. Workaround
  503. ----------
  504. 1. Do not apply your own manual scaling to make your popups match the UI
  505. scaling
  506. or
  507. 2. Override the Look&Feel method
  508. PopupMenu::LookAndFeelMethods::shouldPopupMenuScaleWithTargetComponent and
  509. return false. See
  510. https://github.com/WeAreROLI/JUCE/blob/c288c94c2914af20f36c03ca9c5401fcb555e4e9/modules/juce_gui_basics/menus/juce_PopupMenu.h#725
  511. Rationale
  512. ---------
  513. Previously, PopupMenus would not scale if the GUI of the target component (or
  514. any of it’s parents) were scaled. The only way to scale PopupMenus was via the
  515. global scaling factor. This had several drawbacks as the global scaling factor
  516. would scale everything. This was especially problematic in plug-in editors.
  517. Change
  518. ------
  519. Removed the setSecurityFlags() method from the Windows implementation of
  520. WebInputStream as it disabled HTTPS security features.
  521. Possible Issues
  522. ---------------
  523. Any code previously relying on connections to insecure webpages succeeding will
  524. no longer work.
  525. Workaround
  526. ----------
  527. Check network connectivity on Windows and re-write any code that relied on
  528. insecure connections.
  529. Rationale
  530. ---------
  531. The previous behaviour resulted in network connections on Windows having all
  532. the HTTPS security features disabled, exposing users to network attacks. HTTPS
  533. connections on Windows are now secure and will fail when connecting to an
  534. insecure web address.
  535. Change
  536. ------
  537. Pointer arithmetic on a pointer will have the same result regardless if it is
  538. wrapped in JUCE's Atomic class or not.
  539. Possible Issues
  540. ---------------
  541. Any code using pointer arithmetic on Atomic<T*> will now have a different
  542. result leading to undefined behaviour or crashes.
  543. Workaround
  544. ----------
  545. Re-write your code in a way that it does not depend on your pointer being
  546. wrapped in JUCE's Atomic or not. See rationale.
  547. Rationale
  548. ---------
  549. Before this change, pointer arithmetic with JUCE's Atomic type would yield
  550. confusing results. For example, the following code would assert before this
  551. change:
  552. int* a; Atomic<int*> b;
  553. jassert (++a == ++b);
  554. Pointer a in the above code would be advanced by sizeof(int) whereas the JUCE's
  555. Atomic always advances it's underlying pointer by a single byte. The same is
  556. true for operator+=/operator-= and operator--. The difference in behaviour is
  557. confusing and unintuitive. Furthermore, this aligns JUCE's Atomic type with
  558. std::atomic.
  559. Version 4.3.1
  560. =============
  561. Change
  562. ------
  563. JUCE has changed the way native VST3/AudioUnit parameter ids are calculated.
  564. Possible Issues
  565. ---------------
  566. DAW projects with automation data written by an AudioUnit or VST3 plug-in built
  567. with pre JUCE 4.3.1 versions will load incorrectly when opened by an AudioUnit
  568. or VST3 built with JUCE versions 4.3.1 and later. Plug-ins using
  569. JUCE_FORCE_USE_LEGACY_PARAM_IDS are not affected.
  570. Workaround
  571. ----------
  572. Disable JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS in the
  573. juce_audio_plugin_client module config page in the Projucer. For new plug-ins,
  574. be sure to use the default value for this property.
  575. Rationale
  576. --------
  577. JUCE needs to convert between its own JUCE parameter id format (strings) to the
  578. native parameter id formats of the various plug-in backends. For VST3 and
  579. AudioUnits, JUCE uses a hash function to generate a numeric id. However, some
  580. VST3/AudioUnit hosts (specifically Studio One) have a bug that ignore any
  581. parameters that have a negative parameter id. Therefore, the hash function for
  582. VST3/AudioUnits needed to be changed to only return positive-valued hashes.
  583. Version 4.3.0
  584. =============
  585. Change
  586. ------
  587. A revised multi-bus API was released which supersedes the previously flawed
  588. multi-bus API - JUCE versions 4.0.0 - 4.2.4 (inclusive).
  589. Possible Issues
  590. ---------------
  591. If you have developed a plug-in with JUCE versions 4.0.0 - 4.2.4 (inclusive),
  592. then you will need to update your plug-in to the new multi-bus API. Pre JUCE
  593. 4.0.0 plug-ins are not affected apart from other breaking changes listed in
  594. this document.
  595. Woraround
  596. ---------
  597. None.
  598. Rationale
  599. --------
  600. A flawed multi-bus API was introduced with JUCE versions 4.0.0 up until version
  601. 4.2.4 (inclusive) which was not API compatible with pre JUCE 4 plug-ins. JUCE
  602. 4.3.0 releases a revised multi-bus API which restores pre JUCE 4 API
  603. compatibility. However, the new multi-bus API is not compatible with the flawed
  604. multi-bus API (JUCE version 4.0.0 - 4.2.4).
  605. Change
  606. ------
  607. JUCE now generates the AAX plug-in bus layout configuration id independent from
  608. the position as it appears in the Projucer’s legacy "Channel layout
  609. configuration" field.
  610. Possible Issues
  611. ---------------
  612. ProTools projects generated with a < 4.3.0 JUCE versions of your plug-in, may
  613. load the incorrect bus configuration when upgrading your plug-in to >= 4.3.0
  614. versions of JUCE.
  615. Workaround
  616. ----------
  617. Implement AudioProcessor’s getAAXPluginIDForMainBusConfig callback to manually
  618. override which AAX plug-in id is associated to a specific bus layout of your
  619. plug-in. This workaround is only necessary if you have released your plug-in
  620. built with a version previous to JUCE 4.3.0.
  621. Rationale
  622. --------
  623. The new multi-bus API offers more features, flexibility and accuracy in
  624. specifying bus layouts which cannot be expressed by the Projucer’s legacy
  625. "Channel layout configuration" field. The native plug-in format backends use
  626. the new multi-bus callback APIs to negotiate channel layouts with the host -
  627. including the AAX plug-in ids assigned to specific bus layouts. With the
  628. callback API, there is no notion of an order in which the channel
  629. configurations appear - as was the case with the legacy "Channel layout
  630. configuration" field - and therefore cannot be used to generate the AAX plug-in
  631. id. To remain backward compatible to pre JUCE 4.0.0 plug-ins, JUCE does
  632. transparently convert the legacy "Channel layout configuration" field to the
  633. new callback based multi-bus API, but this does not take the order into account
  634. in which the channel configurations appear in the legacy "Channel layout
  635. configuration" field.
  636. Version 4.2.1
  637. =============
  638. Change
  639. ------
  640. JUCE now uses the paramID property used in AudioProcessorParameterWithID to
  641. uniquely identify parameters to the host.
  642. Possible Issues
  643. ---------------
  644. DAW projects with automation data written by an audio plug-in built with pre
  645. JUCE 4.2.1 will load incorrectly when opened by an audio plug-in built with
  646. JUCE 4.2.1 and later.
  647. Workaround
  648. ----------
  649. Enable JUCE_FORCE_USE_LEGACY_PARAM_IDS in the juce_audio_plugin_client module config
  650. page in the Projucer. For new plug-ins, be sure to disable this property.
  651. Rationale
  652. --------
  653. Each parameter of the AudioProcessor has an id associated so that the plug-in’s
  654. host can uniquely identify parameters. The id has a different data-type for
  655. different plug-in types (for example VST uses integers, AAX uses string
  656. identifiers). Before 4.2.1, JUCE generated the parameter id by using the index
  657. of the parameter, i.e. the first parameter had id zero, the second parameter
  658. had id one, etc. This caused problems for certain plug-in types where JUCE
  659. needs to add internal parameters to the plug-in (for example VST3 requires the
  660. bypass control to be a parameter - so JUCE automatically creates this parameter
  661. for you in the VST3 backend). This causes subtle problems if a parameter is
  662. added to an update of an already published plug-in. The new parameter’s id
  663. would be identical to the id of the bypass parameter in old versions of your
  664. plug-in, causing seemingly random plug-in bypass behaviour when user’s upgrade
  665. their plug-in.
  666. Most plug-in backends differentiate between a parameter’s id an index, so this
  667. distinction was adopted starting with JUCE 4.2.1 by deriving the parameter’s
  668. unique id from the paramID property of AudioProcessorParameterWithID class.