1
0
Fork 0

Fix Diopser DSP load

This commit is contained in:
Robbert van der Helm 2022-02-15 00:33:34 +01:00
parent fa8b87ec71
commit 24f81e2542

View file

@ -252,7 +252,8 @@ impl Plugin for Diopser {
for filter_idx in 0..self.params.filter_stages.value as usize {
// Because of this filter_idx outer loop we can't directly iterate over
// `channel_samples` as the iterator would be empty after the first loop
for (sample, filters) in channel_samples.iter_mut().zip(self.filters.iter_mut()) {
for (channel_idx, filters) in self.filters.iter_mut().enumerate() {
let sample = unsafe { channel_samples.get_unchecked_mut(channel_idx) };
*sample = filters[filter_idx].process(*sample);
}
}