Fix Diopser DSP load
This commit is contained in:
parent
fa8b87ec71
commit
24f81e2542
|
@ -252,7 +252,8 @@ impl Plugin for Diopser {
|
||||||
for filter_idx in 0..self.params.filter_stages.value as usize {
|
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
|
// 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
|
// `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);
|
*sample = filters[filter_idx].process(*sample);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue