fix: use deref to access output slice in audio copy

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

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.outputs();
let (_, output) = *channel_samples;
for frame in 0..num_frames {
output[frame] = interleaved_output[frame * num_channels + ch];
}