Skip to content
Snippets Groups Projects
Commit 76a80c66 authored by Paul Licameli's avatar Paul Licameli
Browse files

Do not revert the changes in Biquad.h

parent fd8b76dd
No related branches found
No related tags found
No related merge requests found
#ifndef __BIQUAD_H__ #ifndef __BIQUAD_H__
#define __BIQUAD_H__ #define __BIQUAD_H__
#if 0
//initialisations not supported in MSVC 2013.
//Gives error C2905
// Do not make conditional on compiler.
typedef struct { typedef struct {
float* pfIn {}; float* pfIn {};
float* pfOut {}; float* pfOut {};
...@@ -10,6 +15,22 @@ typedef struct { ...@@ -10,6 +15,22 @@ typedef struct {
float fPrevOut {}; float fPrevOut {};
float fPrevPrevOut {}; float fPrevPrevOut {};
} BiquadStruct; } BiquadStruct;
#else
// WARNING: This structure may need initialisation.
typedef struct {
float* pfIn;
float* pfOut;
float fNumerCoeffs [3]; // B0 B1 B2
float fDenomCoeffs [2]; // A1 A2
float fPrevIn;
float fPrevPrevIn;
float fPrevOut;
float fPrevPrevOut;
} BiquadStruct;
#endif
void Biquad_Process (BiquadStruct* pBQ, int iNumSamples); void Biquad_Process (BiquadStruct* pBQ, int iNumSamples);
void ComplexDiv (float fNumerR, float fNumerI, float fDenomR, float fDenomI, float* pfQuotientR, float* pfQuotientI); void ComplexDiv (float fNumerR, float fNumerI, float fDenomR, float fDenomI, float* pfQuotientR, float* pfQuotientI);
bool BilinTransform (float fSX, float fSY, float* pfZX, float* pfZY); bool BilinTransform (float fSX, float fSY, float* pfZX, float* pfZY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment