diff --git a/examples/fx_bitcrush/src/plugin.h b/examples/fx_bitcrush/src/plugin.h index 6c5fc28..cc46a98 100644 --- a/examples/fx_bitcrush/src/plugin.h +++ b/examples/fx_bitcrush/src/plugin.h @@ -11,6 +11,7 @@ typedef struct plugin { static void plugin_init(plugin *instance) { bw_sr_reduce_init(&instance->sr_reduce_coeffs); bw_bd_reduce_init(&instance->bd_reduce_coeffs); + bw_bd_reduce_set_silence_dc(&instance->bd_reduce_coeffs, 0); } static void plugin_fini(plugin *instance) { diff --git a/examples/fxpp_bitcrush/src/impl.cpp b/examples/fxpp_bitcrush/src/impl.cpp index 1dd6bbd..f833361 100644 --- a/examples/fxpp_bitcrush/src/impl.cpp +++ b/examples/fxpp_bitcrush/src/impl.cpp @@ -16,6 +16,7 @@ extern "C" { impl impl_new(void) { Engine *instance = new Engine(); + instance->bd.setSilenceDc(0); return reinterpret_cast(instance); } diff --git a/include/bw_bd_reduce.h b/include/bw_bd_reduce.h index d73072a..5dc1864 100644 --- a/include/bw_bd_reduce.h +++ b/include/bw_bd_reduce.h @@ -33,6 +33,7 @@ *