-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTemplate.h
More file actions
39 lines (29 loc) · 827 Bytes
/
Template.h
File metadata and controls
39 lines (29 loc) · 827 Bytes
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
#ifndef _FILTER_PROJECT_H
#define _FILTER_PROJECT_H
#include <cstdint>
#include <memory>
#include <deque>
#include "AllpassFilter.h"
#include "FIRFilter.h"
using std::size_t;
using std::uint8_t;
using std::int16_t;
using std::array;
class FilterProject{
private:
using outType = int16_t;
using deque = std::deque<outType>;
using buffPtr = std::unique_ptr<deque>;
public:
//constructor
FilterProject();
// the decoder and playback programs need the take the samples in the form of 8-bit integers
uint8_t* get_samples(uint8_t* samples, size_t num_samples);
private:
//define the names of your filters here
AllpassFilter allpassFilter;
FIRFilter firFilter;
outType do_filtering(outType new_x);
const size_t sample_rate = 44100;
};
#endif //_FILTER_PROJECT_H