fix: use buffer.split() to access audio channels
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
@@ -102,9 +102,10 @@ impl Plugin for ClipLauncher {
|
||||
}
|
||||
|
||||
// Process audio
|
||||
for channel_samples in buffer.iter_samples() {
|
||||
let input = channel_samples.as_ref();
|
||||
let output = channel_samples.as_mut();
|
||||
let (inputs, mut outputs) = buffer.split();
|
||||
for (input_channel, output_channel) in inputs.iter().zip(outputs.iter_mut()) {
|
||||
let input = *input_channel;
|
||||
let output = *output_channel;
|
||||
let num_samples = input.len();
|
||||
|
||||
// Process this block
|
||||
|
||||
Reference in New Issue
Block a user