1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST3: Allow plugins to designate the first input bus as Aux rather than Main

To use this feature, derive your AudioProcessor from
VST3ClientExtensions and override getPluginHasMainInput() to return
false. The main input bus will then be designated as an Aux bus, rather
than a Main bus.

This is mainly useful for synth plugins like vocoders, which may need a
sidechain audio input, but which should replace all audio on the channel
with the output of the synth, rather than mixing with the audio input.
This commit is contained in:
reuk 2021-07-23 13:25:09 +01:00
parent 34f308bc5a
commit 8f29b2cb83
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 31 additions and 5 deletions

View file

@ -82,6 +82,14 @@ struct VST3ClientExtensions
called - this function may not be called at all!
*/
virtual void setIHostApplication (Steinberg::FUnknown*) {}
/** This function will be called to check whether the first input bus
should be designated as "kMain" or "kAux". Return true if the
first bus should be kMain, or false if the bus should be kAux.
All other input buses will always be designated kAux.
*/
virtual bool getPluginHasMainInput() const { return true; }
};
} // namespace juce