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 3cc5c38 commit b1d8203Copy full SHA for b1d8203
src/node/biquad_filter.rs
@@ -517,8 +517,7 @@ impl BiquadFilterNode {
517
// 1 + (a1 + a2*z1)*z1
518
//
519
// with z1 = 1/z and z = exp(j*pi*frequency). Hence z1 = exp(-j*pi*frequency)
520
- for (i, freq) in frequency_hz.iter().enumerate() {
521
- let freq = *freq;
+ for (i, &freq) in frequency_hz.iter().enumerate() {
522
// <https://webaudio.github.io/web-audio-api/#dom-biquadfilternode-getfrequencyresponse>
523
// > If a value in the frequencyHz parameter is not within [0, sampleRate/2],
524
// > where sampleRate is the value of the sampleRate property of the AudioContext,
0 commit comments