Only resize VST3 shared memory buffers when needed

This is an optimization for the last commit (split into two for
readability's sake).
This commit is contained in:
Robbert van der Helm
2022-05-18 18:08:47 +02:00
parent dedcdefebf
commit 3e73d60b78
2 changed files with 36 additions and 7 deletions
+3
View File
@@ -459,6 +459,9 @@ class Vst3Bridge : public HostBridge {
* This returns a nullopt when `Vst3PluginInstance::process_setup` is not
* set, or when the object instance does not support the `IAudioProcessor`
* interface.
*
* A nullopt will also be returned if this is called again after shared
* audio buffers have been set up and the audio buffer size has not changed.
*/
std::optional<AudioShmBuffer::Config> setup_shared_audio_buffers(
size_t instance_id);