fix: use split() instead of dereferencing ChannelSamples

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 00:32:41 +00:00
parent 33f84ca5eb
commit f51b875d28

View File

@@ -121,7 +121,7 @@ impl Plugin for ClipLauncher {
// Copy back to buffer's output channels
for (ch, channel_samples) in buffer.iter_samples().enumerate() {
let (_, output) = *channel_samples;
let (_, output) = channel_samples.split();
for frame in 0..num_frames {
output[frame] = interleaved_output[frame * num_channels + ch];
}