fix fxpp_bitcrush

This commit is contained in:
Stefano D'Angelo 2023-09-24 23:55:51 +02:00
parent 68df6bee86
commit eb8b057492
2 changed files with 3 additions and 3 deletions

2
TODO
View File

@ -3,7 +3,7 @@
* test flush-to-zero on arm * test flush-to-zero on arm
* debugging - also check outputs different (incl bw_buf) * debugging - also check outputs different (incl bw_buf)
* check all examples again * check all examples again (from fxpp_noise_gate)
* clearly specify that state is tied to a particular set of coeffs (1:N) * clearly specify that state is tied to a particular set of coeffs (1:N)
* state that sample rate is finite and > 0 * state that sample rate is finite and > 0
* state that audio cannot be inf (also in reset) * state that audio cannot be inf (also in reset)

View File

@ -25,8 +25,8 @@ void bw_example_fxpp_bitcrush_init(bw_example_fxpp_bitcrush *instance) {
} }
void bw_example_fxpp_bitcrush_set_sample_rate(bw_example_fxpp_bitcrush *instance, float sample_rate) { void bw_example_fxpp_bitcrush_set_sample_rate(bw_example_fxpp_bitcrush *instance, float sample_rate) {
(void)instance; instance->srReduce.setSampleRate(sample_rate);
(void)sample_rate; instance->bdReduce.setSampleRate(sample_rate);
} }
void bw_example_fxpp_bitcrush_reset(bw_example_fxpp_bitcrush *instance) { void bw_example_fxpp_bitcrush_reset(bw_example_fxpp_bitcrush *instance) {