fix: access ChannelSamples outputs field directly

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

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