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:
@@ -102,8 +102,9 @@ impl Plugin for ClipLauncher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Process audio
|
// Process audio
|
||||||
for channel_samples in buffer.iter_samples() {
|
for channel in buffer.channels() {
|
||||||
let (input, output): (&[f32], &mut [f32]) = channel_samples.into();
|
let input = channel.inputs;
|
||||||
|
let output = channel.outputs;
|
||||||
let num_samples = input.len();
|
let num_samples = input.len();
|
||||||
|
|
||||||
// Process this block
|
// Process this block
|
||||||
|
|||||||
Reference in New Issue
Block a user