瀏覽代碼

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

dds
PaulStoffregen 8 年之前
父節點
當前提交
e3353358b6
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      filter_biquad.cpp

+ 3
- 2
filter_biquad.cpp 查看文件

@@ -91,8 +91,9 @@ void AudioFilterBiquad::setCoefficients(uint32_t stage, const int *coefficients)
*dest++ = *coefficients++;
*dest++ = *coefficients++ * -1;
*dest++ = *coefficients++ * -1;
*dest++ = 0;
*dest++ = 0;
//*dest++ = 0;
//*dest++ = 0; // clearing filter state causes loud pop
dest += 2;
*dest &= 0x80000000;
__enable_irq();
}

Loading…
取消
儲存