fix: use correct nih-plug API to access channel samples

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 00:19:17 +00:00
parent 79d9e3b249
commit d21bb88962

View File

@@ -102,8 +102,9 @@ impl Plugin for ClipLauncher {
}
// Process audio
for channel_samples in buffer.iter_samples() {
let (input, output): (&[f32], &mut [f32]) = channel_samples.into();
for channel in buffer.channels() {
let input = channel.inputs;
let output = channel.outputs;
let num_samples = input.len();
// Process this block