-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathallpass.c
39 lines (27 loc) · 867 Bytes
/
allpass.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
typedef struct APF_t {
fixedp frequency = 0;
BiQuad *filter;
void (* calculateCoeffs)(APF *this, fixedp frequency);
void (* processAudio)(APF *this, fixedp *input, fixedp *output, unsigned int frames, unsigned char numInChannels, unsigned char numOutChannels);
} APF;
void calculateAPF(APF *this, fixedp frequency) {
this.frequency = frequency;
fixedp alpha = ;
this->filter->a0 = 0;
this->filter->a1 = 0;
this->filter->a2 = 0;
this->filter->b1 = 0;
this->filter->b2 = 0;
}
void processAudioAPF(APF *this, fixedp *input, fixedp *output, unsigned int frames, unsigned char numInChannels, unsigned char numOutChannels) {
}
APF* createAPF() {
APF* apf = (APF*)malloc(sizeof(APF) + sizeof(BiQuad));
apf.filter = createBiQuad();
apf.calculateCoeffs = calculateAPF;
}
void calculateParametric
typedef struct Comb_t {
fixedp g = 0;
delay?;
}