13
0

Inform plugins about connected input pins

When not using inplace processing (because I/O pins connections
are not an identity matrix), dedicated inplace-buffers are used.
Those buffers contain silence on unused ports, and hence always
valid to use. However it is still useful for plugins to know
if a plugin-port is actually used. VST3 can disable busses
for unconnected pins.
This commit is contained in:
Robin Gareus 2022-11-26 18:10:23 +01:00
parent f6eac0f03a
commit e87b989501
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1063,6 +1063,7 @@ PluginInsert::connect_and_run (BufferSet& bufs, samplepos_t start, samplepos_t e
inplace_bufs.get_available (*t, m).read_from (bufs.get_available (*t, in_idx), nframes, offset, offset);
} else {
inplace_bufs.get_available (*t, m).silence (nframes, offset);
i_in_map.unset (*t, in);
}
mapped.set (*t, m + 1);
}