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
|
// Process audio
|
||||||
for channel_samples in buffer.iter_samples() {
|
let (inputs, mut outputs) = buffer.split();
|
||||||
let input = channel_samples.as_ref();
|
for (input_channel, output_channel) in inputs.iter().zip(outputs.iter_mut()) {
|
||||||
let output = channel_samples.as_mut();
|
let input = *input_channel;
|
||||||
|
let output = *output_channel;
|
||||||
let num_samples = input.len();
|
let num_samples = input.len();
|
||||||
|
|
||||||
// Process this block
|
// Process this block
|
||||||
|
|||||||
Reference in New Issue
Block a user