fix: access ChannelSamples outputs field directly
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
@@ -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.as_ref();
|
let output = channel_samples.outputs;
|
||||||
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];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user