-
Notifications
You must be signed in to change notification settings - Fork 0
/
eq_xna.h
55 lines (40 loc) · 1.17 KB
/
eq_xna.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//--------------------------------------------------------------------------------------
// File: eq.h
//--------------------------------------------------------------------------------------
#ifndef __EQ3BANDXNA__
#define __EQ3BANDXNA__
namespace EQ_XNAMATH
{
// ------------
//| Structures |
// ------------
typedef struct
{
// Filter #1 (Low band)
XMVECTOR lf; // Frequency
XMVECTOR f1p0; // Poles ...
XMVECTOR f1p1;
XMVECTOR f1p2;
XMVECTOR f1p3;
// Filter #2 (High band)
XMVECTOR hf; // Frequency
XMVECTOR f2p0; // Poles ...
XMVECTOR f2p1;
XMVECTOR f2p2;
XMVECTOR f2p3;
// Sample history buffer
XMVECTOR sdm1; // Sample data minus 1
XMVECTOR sdm2; // 2
XMVECTOR sdm3; // 3
// Gain Controls
XMVECTOR lg; // low gain
XMVECTOR mg; // mid gain
XMVECTOR hg; // high gain
} EQSTATE;
// ---------
//| Exports |
// ---------
extern void init_3band_state(EQSTATE* es, int lowfreq, int highfreq, int mixfreq);
extern XMVECTOR do_3band(EQSTATE* es, XMVECTOR& sample);
}
#endif // #ifndef __EQ3BANDXNA__