C++ compatibility

This commit is contained in:
Connor Olding 2013-11-15 19:15:50 -08:00
parent 0fb03d35dc
commit 68a7f01a7c

View file

@ -64,13 +64,13 @@ biquad_gen(int type, double fc, double gain, double bw, double fs) {
double a0r = 1/bqi.a0; double a0r = 1/bqi.a0;
return (biquad) { biquad out;
.b0 = a0r * bqi.b0, out.b0 = a0r*bqi.b0;
.b1 = a0r * bqi.b1, out.b1 = a0r*bqi.b1;
.b2 = a0r * bqi.b2, out.b2 = a0r*bqi.b2;
.a1 = -a0r * bqi.a1, out.a1 = -a0r*bqi.a1;
.a2 = -a0r * bqi.a2 out.a2 = -a0r*bqi.a2;
}; return out;
} }
static bq_t static bq_t