more of the same
This commit is contained in:
parent
c2c1979cc3
commit
f04fcac4ea
@ -30,6 +30,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_hp1_process()</code> to
|
||||
* <code>bw_hp1_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_hp1_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -511,6 +513,10 @@ static inline void bw_hp1_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_hp1_coeffs_state_reset_coeffs);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_hp1_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -518,6 +524,11 @@ static inline void bw_hp1_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -535,6 +546,12 @@ static inline void bw_hp1_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_hp1_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_hp1_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_hp1_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_hp1_set_cutoff(
|
||||
|
@ -29,6 +29,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_hs1_process()</code> to
|
||||
* <code>bw_hs1_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_hs1_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -587,6 +589,10 @@ static inline void bw_hs1_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->cutoff * bw_sqrtf(coeffs->high_gain) >= 1e-6f && coeffs->cutoff * bw_sqrtf(coeffs->high_gain) <= 1e12f);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_hs1_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -594,6 +600,11 @@ static inline void bw_hs1_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -611,6 +622,12 @@ static inline void bw_hs1_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_hs1_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_hs1_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_hs1_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_hs1_set_cutoff(
|
||||
|
@ -29,6 +29,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_hs2_process()</code> to
|
||||
* <code>bw_hs2_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_hs2_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -615,6 +617,10 @@ static inline void bw_hs2_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->cutoff * bw_sqrtf(bw_sqrtf(coeffs->high_gain)) >= 1e-6f && coeffs->cutoff * bw_sqrtf(bw_sqrtf(coeffs->high_gain)) <= 1e12f);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_hs2_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -622,6 +628,11 @@ static inline void bw_hs2_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -639,6 +650,12 @@ static inline void bw_hs2_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_hs2_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_hs2_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_hs2_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_hs2_set_cutoff(
|
||||
|
@ -32,6 +32,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_lp1_process()</code> to
|
||||
* <code>bw_lp1_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_lp1_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -562,6 +564,10 @@ static inline void bw_lp1_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_lp1_coeffs_state_reset_coeffs);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_lp1_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -569,6 +575,11 @@ static inline void bw_lp1_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -585,6 +596,12 @@ static inline void bw_lp1_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_lp1_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_lp1_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_lp1_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_lp1_set_cutoff(
|
||||
|
@ -30,6 +30,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_ls1_process()</code> to
|
||||
* <code>bw_ls1_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_ls1_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -585,6 +587,10 @@ static inline void bw_ls1_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->cutoff * bw_rcpf(bw_sqrtf(coeffs->dc_gain)) >= 1e-6f && coeffs->cutoff * bw_rcpf(bw_sqrtf(coeffs->dc_gain)) <= 1e12f);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_ls1_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -592,6 +598,11 @@ static inline void bw_ls1_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -609,6 +620,12 @@ static inline void bw_ls1_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_ls1_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_ls1_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_ls1_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_ls1_set_cutoff(
|
||||
|
@ -30,6 +30,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_ls2_process()</code> to
|
||||
* <code>bw_ls2_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_ls2_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -621,6 +623,10 @@ static inline void bw_ls2_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->cutoff * bw_rcpf(bw_sqrtf(bw_sqrtf(coeffs->dc_gain))) >= 1e-6f && coeffs->cutoff * bw_rcpf(bw_sqrtf(bw_sqrtf(coeffs->dc_gain))) <= 1e12f);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_ls2_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -628,6 +634,11 @@ static inline void bw_ls2_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -645,6 +656,12 @@ static inline void bw_ls2_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_ls2_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_ls2_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_ls2_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_ls2_set_cutoff(
|
||||
|
@ -29,6 +29,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_mm1_process()</code> to
|
||||
* <code>bw_mm1_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_mm1_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -554,6 +556,10 @@ static inline void bw_mm1_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_mm1_coeffs_state_reset_coeffs);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_mm1_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -561,6 +567,11 @@ static inline void bw_mm1_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -578,6 +589,12 @@ static inline void bw_mm1_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_mm1_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_mm1_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_mm1_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_mm1_set_cutoff(
|
||||
|
@ -29,6 +29,8 @@
|
||||
* <ul>
|
||||
* <li>Version <strong>1.1.1</strong>:
|
||||
* <ul>
|
||||
* <li>Added debugging checks from <code>bw_mm2_process()</code> to
|
||||
* <code>bw_mm2_process_multi()</code>.</li>
|
||||
* <li>Added debugging checks in <code>bw_mm2_process_multi()</code> to
|
||||
* ensure that buffers used for both input and output appear at the
|
||||
* same channel indices.</li>
|
||||
@ -615,6 +617,10 @@ static inline void bw_mm2_process_multi(
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_mm2_coeffs_state_reset_coeffs);
|
||||
BW_ASSERT(state != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(state[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_mm2_state_is_valid(coeffs, state[i]));
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(state[i] != state[j]);
|
||||
@ -622,6 +628,11 @@ static inline void bw_mm2_process_multi(
|
||||
BW_ASSERT(x != BW_NULL);
|
||||
BW_ASSERT(y != BW_NULL);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT(x[i] != BW_NULL);
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(x[i], n_samples));
|
||||
BW_ASSERT(y[i] != BW_NULL);
|
||||
}
|
||||
for (size_t i = 0; i < n_channels; i++)
|
||||
for (size_t j = i + 1; j < n_channels; j++)
|
||||
BW_ASSERT(y[i] != y[j]);
|
||||
@ -639,6 +650,12 @@ static inline void bw_mm2_process_multi(
|
||||
|
||||
BW_ASSERT_DEEP(bw_mm2_coeffs_is_valid(coeffs));
|
||||
BW_ASSERT_DEEP(coeffs->state >= bw_mm2_coeffs_state_reset_coeffs);
|
||||
#ifndef BW_NO_DEBUG
|
||||
for (size_t i = 0; i < n_channels; i++) {
|
||||
BW_ASSERT_DEEP(bw_mm2_state_is_valid(coeffs, state[i]));
|
||||
BW_ASSERT_DEEP(bw_has_only_finite(y[i], n_samples));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void bw_mm2_set_cutoff(
|
||||
|
Loading…
Reference in New Issue
Block a user