1
0
Fork 0

Fix classic off by one error

This commit is contained in:
Robbert van der Helm 2022-06-07 01:11:08 +02:00
parent 8d70f172c3
commit dd18c7a08a

View file

@ -246,7 +246,7 @@ impl FirCrossover {
} }
fir_hp_coefs.0[FILTER_SIZE / 2] += f32x2::splat(1.0); fir_hp_coefs.0[FILTER_SIZE / 2] += f32x2::splat(1.0);
self.band_filters[num_bands].coefficients = fir_hp_coefs; self.band_filters[num_bands - 1].coefficients = fir_hp_coefs;
} }
} }
} }