We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12fa04c commit f7879c2Copy full SHA for f7879c2
src/node/iir_filter.rs
@@ -353,12 +353,13 @@ impl AudioProcessor for IirFilterRenderer {
353
}
354
355
// apply filter
356
- for (channel_number, (input_channel, output_channel)) in input
357
- .channels()
358
- .iter()
359
- .zip(output.channels_mut())
360
- .enumerate()
361
- {
+ for (channel_number, output_channel) in output.channels_mut().iter_mut().enumerate() {
+ let input_channel = if input.is_silent() {
+ input.channel_data(0)
+ } else {
+ input.channel_data(channel_number)
+ };
362
+
363
for (&i, o) in input_channel.iter().zip(output_channel.iter_mut()) {
364
let input = f64::from(i);
365
let b0 = self.norm_coeffs[0].0;
0 commit comments