diff --git a/examples/fx_hp1/vst3/Makefile b/examples/fx_hp1/vst3/Makefile index 3244755..aab2bdd 100644 --- a/examples/fx_hp1/vst3/Makefile +++ b/examples/fx_hp1/vst3/Makefile @@ -4,3 +4,6 @@ NAME := bw_example_fx_hp1 SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_hp1.c include ${ROOT_DIR}/../../common/vst3/vst3.mk + +CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG +#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP diff --git a/examples/fxpp_hp1/vst3/Makefile b/examples/fxpp_hp1/vst3/Makefile index cc744da..d68eb95 100644 --- a/examples/fxpp_hp1/vst3/Makefile +++ b/examples/fxpp_hp1/vst3/Makefile @@ -4,3 +4,6 @@ NAME := bw_example_fxpp_hp1 SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_hp1.cpp include ${ROOT_DIR}/../../common/vst3/vst3.mk + +CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG +#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP diff --git a/include/bw_hp1.h b/include/bw_hp1.h index c97f68f..1da24f2 100644 --- a/include/bw_hp1.h +++ b/include/bw_hp1.h @@ -30,6 +30,7 @@ * * @@ -549,7 +550,7 @@ static inline void bw_lp1_set_prewarp_freq( } static inline char bw_lp1_coeffs_is_valid( - const bw_lp1_coeffs * BW_RESTRICT coeffs) { + const bw_lp1_coeffs * BW_RESTRICT coeffs) { BW_ASSERT(coeffs != NULL); #ifdef BW_DEBUG_DEEP @@ -588,7 +589,7 @@ static inline char bw_lp1_coeffs_is_valid( } static inline char bw_lp1_state_is_valid( - const bw_lp1_state * BW_RESTRICT state) { + const bw_lp1_state * BW_RESTRICT state) { BW_ASSERT(state != NULL); #ifdef BW_DEBUG_DEEP @@ -596,8 +597,7 @@ static inline char bw_lp1_state_is_valid( return 0; #endif - return bw_is_finite(state->y_z1); - return bw_is_finite(state->X_z1); + return bw_is_finite(state->y_z1) && bw_is_finite(state->X_z1); } #ifdef __cplusplus diff --git a/include/bw_one_pole.h b/include/bw_one_pole.h index dcfd2b7..efce7e2 100644 --- a/include/bw_one_pole.h +++ b/include/bw_one_pole.h @@ -42,6 +42,7 @@ *
  • Removed usage of reserved identifiers.
  • *
  • Now using backward Euler rather than impulse invariant * method.
  • + *
  • Clearly specificed parameter validity ranges.
  • *
  • Added more debugging code.
  • *
  • Added pragmas to silence bogus GCC uninitialized variable * warnings.
  • diff --git a/include/bw_slew_lim.h b/include/bw_slew_lim.h index 2548174..bde6cb4 100644 --- a/include/bw_slew_lim.h +++ b/include/bw_slew_lim.h @@ -43,6 +43,7 @@ * bw_slew_lim_init(). *
  • Fixed documentation of * bw_slew_lim_update_coeffs_audio().
  • + *
  • Clearly specificed parameter validity ranges.
  • *
  • Added debugging code.
  • * * @@ -747,7 +748,7 @@ static inline float bw_slew_lim_get_y_z1( } static inline char bw_slew_lim_coeffs_is_valid( - const bw_slew_lim_coeffs * BW_RESTRICT coeffs) { + const bw_slew_lim_coeffs * BW_RESTRICT coeffs) { BW_ASSERT(coeffs != NULL); #ifdef BW_DEBUG_DEEP @@ -780,7 +781,7 @@ static inline char bw_slew_lim_coeffs_is_valid( } static inline char bw_slew_lim_state_is_valid( - const bw_slew_lim_state * BW_RESTRICT state) { + const bw_slew_lim_state * BW_RESTRICT state) { BW_ASSERT(state != NULL); #ifdef BW_DEBUG_DEEP