diff --git a/include/bw_iir1.h b/include/bw_iir1.h index 56e23eb..d8b0640 100644 --- a/include/bw_iir1.h +++ b/include/bw_iir1.h @@ -470,8 +470,8 @@ static inline void bw_iir1_process_multi( #endif bw_iir1_assert_valid_coeffs(b0, b1, a1); - for (size_t i = 0; i < n_samples; i++) - for (size_t j = 0; j < n_channels; j++) + for (size_t j = 0; j < n_channels; j++) + for (size_t i = 0; i < n_samples; i++) bw_iir1_process1(x[j][i], y[j] + i, s + j, b0, b1, a1); #ifndef BW_NO_DEBUG diff --git a/include/bw_iir2.h b/include/bw_iir2.h index f8e19f3..ffcf6c5 100644 --- a/include/bw_iir2.h +++ b/include/bw_iir2.h @@ -675,8 +675,8 @@ static inline void bw_iir2_process_multi( #endif bw_iir2_assert_valid_coeffs(b0, b1, b2, a1, a2); - for (size_t i = 0; i < n_samples; i++) - for (size_t j = 0; j < n_channels; j++) + for (size_t j = 0; j < n_channels; j++) + for (size_t i = 0; i < n_samples; i++) bw_iir2_process1(x[j][i], y[j] + i, s1 + j, s2 + j, b0, b1, b2, a1, a2); #ifndef BW_NO_DEBUG