Bläddra i källkod

Don't cause a loud pop when changing biquad filter coefficients

dds
PaulStoffregen 9 år sedan
förälder
incheckning
e3353358b6
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. +3
    -2
      filter_biquad.cpp

+ 3
- 2
filter_biquad.cpp Visa fil

*dest++ = *coefficients++; *dest++ = *coefficients++;
*dest++ = *coefficients++ * -1; *dest++ = *coefficients++ * -1;
*dest++ = *coefficients++ * -1; *dest++ = *coefficients++ * -1;
*dest++ = 0;
*dest++ = 0;
//*dest++ = 0;
//*dest++ = 0; // clearing filter state causes loud pop
dest += 2;
*dest &= 0x80000000; *dest &= 0x80000000;
__enable_irq(); __enable_irq();
} }

Laddar…
Avbryt
Spara