1
0
Fork 0

Clarify the VST3 output .take(num_outputs)

This commit is contained in:
Robbert van der Helm 2022-04-30 01:52:53 +02:00
parent df14674231
commit ddc28eef5e

View file

@ -976,7 +976,9 @@ impl<P: Vst3Plugin> IAudioProcessor for Wrapper<P> {
nih_debug_assert_eq!(num_output_channels, output_slices.len());
// In case the host does provide fewer output channels than we expect, we
// should still try to handle that gracefully
// should still try to handle that gracefully. This happens when the plugin
// is bypassed in Ableton Live and a parameter is modified. In that case the
// above assertion will still trigger.
for (output_channel_idx, output_channel_slice) in output_slices
.iter_mut()
.take(num_output_channels)