Browse Source

sg5k: calcBiquad: add missing break; for hishelf

There was a missing `break;` at the end of the FILTER_HISHELF
case in the calculations, meaning a hishelf coeff calc always
returned the default fallthrough case, which is a benign passthrough
filter.

Fix by adding the `break;`.

Fixes: #343

Signed-off-by: Graham Whaley <graham.whaley@gmail.com>
dds
Graham Whaley 3 years ago
parent
commit
71367e60ea
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      control_sgtl5000.cpp

+ 1
- 0
control_sgtl5000.cpp View File

a0 = (A+1.0F) - ((A-1.0F)*cosw) + (beta*sinw); a0 = (A+1.0F) - ((A-1.0F)*cosw) + (beta*sinw);
a1 = -2.0F * ((A-1.0F) - ((A+1.0F)*cosw)); a1 = -2.0F * ((A-1.0F) - ((A+1.0F)*cosw));
a2 = -((A+1.0F) - ((A-1.0F)*cosw) - (beta*sinw)); a2 = -((A+1.0F) - ((A-1.0F)*cosw) - (beta*sinw));
break;
default: default:
b0 = 0.5; b0 = 0.5;
b1 = 0.0; b1 = 0.0;

Loading…
Cancel
Save