1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00
JUCE/modules/juce_audio_plugin_client
reuk 0e85fec4a2
VST3 Client: Allow host to enable/disable buses at will
Previously, activateBus would fail if the new BusesLayout wasn't
supported, as reported by isBusesLayoutSupported. However, according to
the VST3 docs, a host is allowed to enable and disable buses in any
combination, and the plugin should be able to handle this gracefully.

The ability to enable/disable individual buses without failure is
particularly important because there's no VST3 API to set a complete bus
layout in one go. That is, the only way to set all buses active or all
buses inactive is to set the appropriate state on each bus individually,
which in turn means that at some point, some buses will be active and
some will be inactive. Disallowing such 'intermediate' states may
prevent the host from putting the plugin into other (valid) states.

To ensure that the VST3 wrapper always accepts activateBus calls, it now
keeps track of the activation state of each bus as requested by the
host. When the host tries to change the activation state, the wrapper
will try to set the host's "ideal" bus layout on the AudioProcessor. If
this fails, the AudioProcessor will retain its previous bus layout.

The buffer remapping inside the process callback has been made more
robust, to handle cases where the host and the AudioProcessor disagree
about the activation state of each bus:

For input buses:
- If the host has activated the bus, but the AudioProcessor decided to
  keep the bus inactive, the host's input will be ignored.
- If the host deactivated the bus, but the AudioProcessor wanted to keep
  the bus active, the AudioProcessor will be provided with silence on
  that bus.

For output buses:
- If the host has activated the bus, but the AudioProcessor decided to
  keep the bus inactive, the wrapper will clear the host's output
  bus buffers.
- If the host deactivated the bus, but the AudioProcessor wanted to keep
  the bus active, the AudioProcessor's output on that bus will be
  ignored.

The AudioBuffer passed to the wrapped AudioProcessor will no longer
contain any pointers from the host's ProcessData. Instead, the host's
inputs will be copied (in JUCE channel order) to a temporary buffer,
and this temporary buffer will be passed to
AudioProcessor::processBlock. After processBlock, the buffer contents
will be copied to the host's output buffers.

This change is intended to avoid a potential issue when reordering
channels into JUCE order, which may necessitate copying a host input
channel to a different host output channel. In the case that the host is
using the same buffers for both inputs and outputs, copying an input to
an output channel may end up overwriting another input channel, breaking
the plugin's inputs.
2022-06-13 11:36:52 +01:00
..
AAX VS2022: Work around a compiler bug 2022-05-23 21:12:20 +01:00
AU AUv3: Fix race on factoryPresets 2022-04-28 12:12:59 +01:00
RTAS Plugin clients: Fix bypass behaviours to match getBypassParameter() documentation 2022-02-07 14:24:11 +00:00
Standalone StandaloneFilterWindow: Account for native frame size in constrainer 2022-04-01 16:41:47 +01:00
Unity Image: Keep track of contiguous buffer size to avoid heap buffer overflows 2022-02-23 10:56:09 +00:00
utility MinGW: Improve compatibility 2022-01-17 10:58:18 +00:00
VST Plugin clients: Fix bypass behaviours to match getBypassParameter() documentation 2022-02-07 14:24:11 +00:00
VST3 VST3 Client: Allow host to enable/disable buses at will 2022-06-13 11:36:52 +01:00
AUResources.r Build: Improve support for AU resource files on ARM Macs 2021-06-25 11:12:37 +01:00
juce_audio_plugin_client.h Bump version number to 6.1.6 2022-02-28 12:53:10 +00:00
juce_audio_plugin_client_AAX.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_AAX.mm Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_AU.r Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_AU_1.mm Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_AU_2.mm Fix warnings when building in C++20 mode 2021-01-15 13:33:40 +00:00
juce_audio_plugin_client_AUv3.mm Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_RTAS.r Renamed XCode to Xcode in multiple places 2017-10-06 09:54:32 +01:00
juce_audio_plugin_client_RTAS_1.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_RTAS_2.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_RTAS_3.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_RTAS_4.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_RTAS_utils.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_RTAS_utils.mm Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_Standalone.cpp AppConfig: Ensure AppConfig is always included in plugin wrappers 2020-10-20 10:16:13 +01:00
juce_audio_plugin_client_Unity.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_utils.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_VST2.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_VST3.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_audio_plugin_client_VST_utils.mm Updated all license headers 2020-06-29 08:30:22 +01:00