fix bw_*_state_is_valid in finalized modules
This commit is contained in:
parent
99fc95a693
commit
05c6f58997
@ -579,9 +579,7 @@ static inline char bw_ap1_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_lp1_state_is_valid(coeffs ? &coeffs->lp1_coeffs : NULL, &state->lp1_state);
|
||||||
|
|
||||||
return bw_lp1_state_is_valid(&coeffs->lp1_coeffs, &state->lp1_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -607,9 +607,7 @@ static inline char bw_ap2_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_svf_state_is_valid(coeffs ? &coeffs->svf_coeffs : NULL, &state->svf_state);
|
||||||
|
|
||||||
return bw_svf_state_is_valid(&coeffs->svf_coeffs, &state->svf_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -773,9 +773,7 @@ static inline char bw_comp_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_env_follow_state_is_valid(coeffs ? &coeffs->env_follow_coeffs : NULL, &state->env_follow_state);
|
||||||
|
|
||||||
return bw_env_follow_state_is_valid(&coeffs->env_follow_coeffs, &state->env_follow_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -627,13 +627,11 @@ static inline char bw_dist_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_hp1_state_is_valid(coeffs ? &coeffs->hp1_coeffs : NULL, &state->hp1_state)
|
||||||
|
&& bw_peak_state_is_valid(coeffs ? &coeffs->peak_coeffs : NULL, &state->peak_state)
|
||||||
return bw_hp1_state_is_valid(&coeffs->hp1_coeffs, &state->hp1_state)
|
&& bw_clip_state_is_valid(coeffs ? &coeffs->clip_coeffs : NULL, &state->clip_state)
|
||||||
&& bw_peak_state_is_valid(&coeffs->peak_coeffs, &state->peak_state)
|
&& bw_satur_state_is_valid(coeffs ? &coeffs->satur_coeffs : NULL, &state->satur_state)
|
||||||
&& bw_clip_state_is_valid(&coeffs->clip_coeffs, &state->clip_state)
|
&& bw_lp1_state_is_valid(coeffs ? &coeffs->lp1_coeffs : NULL, &state->lp1_state);
|
||||||
&& bw_satur_state_is_valid(&coeffs->satur_coeffs, &state->satur_state)
|
|
||||||
&& bw_lp1_state_is_valid(&coeffs->lp1_coeffs, &state->lp1_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -628,13 +628,11 @@ static inline char bw_drive_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_svf_state_is_valid(coeffs ? &coeffs->hp2_coeffs : NULL, &state->hp2_state)
|
||||||
|
&& bw_hs1_state_is_valid(coeffs ? &coeffs->hs1_coeffs : NULL, &state->hs1_state)
|
||||||
return bw_svf_state_is_valid(&coeffs->hp2_coeffs, &state->hp2_state)
|
&& bw_peak_state_is_valid(coeffs ? &coeffs->peak_coeffs : NULL, &state->peak_state)
|
||||||
&& bw_hs1_state_is_valid(&coeffs->hs1_coeffs, &state->hs1_state)
|
&& bw_satur_state_is_valid(coeffs ? &coeffs->satur_coeffs : NULL, &state->satur_state)
|
||||||
&& bw_peak_state_is_valid(&coeffs->peak_coeffs, &state->peak_state)
|
&& bw_lp1_state_is_valid(coeffs ? &coeffs->lp1_coeffs : NULL, &state->lp1_state);
|
||||||
&& bw_satur_state_is_valid(&coeffs->satur_coeffs, &state->satur_state)
|
|
||||||
&& bw_lp1_state_is_valid(&coeffs->lp1_coeffs, &state->lp1_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -599,14 +599,12 @@ static inline char bw_fuzz_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_hp1_state_is_valid(coeffs ? &coeffs->hp1_in_coeffs : NULL, &state->hp1_in_state)
|
||||||
|
&& bw_svf_state_is_valid(coeffs ? &coeffs->lp2_coeffs : NULL, &state->lp2_1_state)
|
||||||
return bw_hp1_state_is_valid(&coeffs->hp1_in_coeffs, &state->hp1_in_state)
|
&& bw_svf_state_is_valid(coeffs ? &coeffs->lp2_coeffs : NULL, &state->lp2_2_state)
|
||||||
&& bw_svf_state_is_valid(&coeffs->lp2_coeffs, &state->lp2_1_state)
|
&& bw_peak_state_is_valid(coeffs ? &coeffs->peak_coeffs : NULL, &state->peak_state)
|
||||||
&& bw_svf_state_is_valid(&coeffs->lp2_coeffs, &state->lp2_2_state)
|
&& bw_satur_state_is_valid(coeffs ? &coeffs->satur_coeffs : NULL, &state->satur_state)
|
||||||
&& bw_peak_state_is_valid(&coeffs->peak_coeffs, &state->peak_state)
|
&& bw_hp1_state_is_valid(coeffs ? &coeffs->hp1_out_coeffs : NULL, &state->hp1_out_state);
|
||||||
&& bw_satur_state_is_valid(&coeffs->satur_coeffs, &state->satur_state)
|
|
||||||
&& bw_hp1_state_is_valid(&coeffs->hp1_out_coeffs, &state->hp1_out_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -576,9 +576,7 @@ static inline char bw_hp1_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_lp1_state_is_valid(coeffs ? &coeffs->lp1_coeffs : NULL, &state->lp1_state);
|
||||||
|
|
||||||
return bw_lp1_state_is_valid(&coeffs->lp1_coeffs, &state->lp1_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -693,9 +693,7 @@ static inline char bw_hs1_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_mm1_state_is_valid(coeffs ? &coeffs->mm1_coeffs : NULL, &state->mm1_state);
|
||||||
|
|
||||||
return bw_mm1_state_is_valid(&coeffs->mm1_coeffs, &state->mm1_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -749,9 +749,7 @@ static inline char bw_hs2_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_mm2_state_is_valid(coeffs ? &coeffs->mm2_coeffs : NULL, &state->mm2_state);
|
||||||
|
|
||||||
return bw_mm2_state_is_valid(&coeffs->mm2_coeffs, &state->mm2_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef BW_HS2_PARAM_CUTOFF
|
#undef BW_HS2_PARAM_CUTOFF
|
||||||
|
@ -694,9 +694,7 @@ static inline char bw_ls1_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_mm1_state_is_valid(coeffs ? &coeffs->mm1_coeffs : NULL, &state->mm1_state);
|
||||||
|
|
||||||
return bw_mm1_state_is_valid(&coeffs->mm1_coeffs, &state->mm1_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -740,9 +740,7 @@ static inline char bw_ls2_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_mm2_state_is_valid(coeffs ? &coeffs->mm2_coeffs : NULL, &state->mm2_state);
|
||||||
|
|
||||||
return bw_mm2_state_is_valid(&coeffs->mm2_coeffs, &state->mm2_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef BW_LS2_PARAM_CUTOFF
|
#undef BW_LS2_PARAM_CUTOFF
|
||||||
|
@ -645,9 +645,7 @@ static inline char bw_mm1_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_lp1_state_is_valid(coeffs ? &coeffs->lp1_coeffs : NULL, &state->lp1_state);
|
||||||
|
|
||||||
return bw_lp1_state_is_valid(&coeffs->lp1_coeffs, &state->lp1_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -753,9 +753,7 @@ static inline char bw_mm2_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_svf_state_is_valid(coeffs ? &coeffs->svf_coeffs : NULL, &state->svf_state);
|
||||||
|
|
||||||
return bw_svf_state_is_valid(&coeffs->svf_coeffs, &state->svf_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -702,9 +702,7 @@ static inline char bw_noise_gate_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_env_follow_state_is_valid(coeffs ? &coeffs->env_follow_coeffs : NULL, &state->env_follow_state);
|
||||||
|
|
||||||
return bw_env_follow_state_is_valid(&coeffs->env_follow_coeffs, &state->env_follow_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -605,9 +605,7 @@ static inline char bw_notch_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_svf_state_is_valid(coeffs ? &coeffs->svf_coeffs : NULL, &state->svf_state);
|
||||||
|
|
||||||
return bw_svf_state_is_valid(&coeffs->svf_coeffs, &state->svf_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -835,9 +835,7 @@ static inline char bw_peak_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_mm2_state_is_valid(coeffs ? &coeffs->mm2_coeffs : NULL, &state->mm2_state);
|
||||||
|
|
||||||
return bw_mm2_state_is_valid(&coeffs->mm2_coeffs, &state->mm2_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef BW_PEAK_PARAM_Q
|
#undef BW_PEAK_PARAM_Q
|
||||||
|
@ -535,9 +535,7 @@ static inline char bw_wah_state_is_valid(
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
(void)coeffs;
|
return bw_svf_state_is_valid(coeffs ? &coeffs->svf_coeffs : NULL, &state->svf_state);
|
||||||
|
|
||||||
return bw_svf_state_is_valid(&coeffs->svf_coeffs, &state->svf_state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user