fix: use as_slice() to access ChannelSamples output

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 00:34:13 +00:00
parent 9c895d3b0b
commit 1f82ec4168

View File

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