Mercurial > hg > decimation
comparison garage-resampler/Resampler.h @ 4:1c3ab56ee9b5
More resampler fixes (particularly to latency calculation) and tests
author | Chris Cannam |
---|---|
date | Mon, 14 Oct 2013 16:15:32 +0100 |
parents | bda8d2e803ee |
children | 94c1cadc6caf |
comparison
equal
deleted
inserted
replaced
3:58e0bf3f87e3 | 4:1c3ab56ee9b5 |
---|---|
48 | 48 |
49 struct Phase { | 49 struct Phase { |
50 int nextPhase; | 50 int nextPhase; |
51 std::vector<double> filter; | 51 std::vector<double> filter; |
52 int drop; | 52 int drop; |
53 int take; | |
54 }; | 53 }; |
55 | 54 |
56 Phase *m_phaseData; | 55 Phase *m_phaseData; |
57 int m_phase; | 56 int m_phase; |
58 std::vector<double> m_buffer; | 57 std::vector<double> m_buffer; |
59 | 58 |
60 void initialise(); | 59 void initialise(); |
61 double reconstructOne(const double *); | 60 double reconstructOne(); |
62 }; | 61 }; |
63 | 62 |
64 #endif | 63 #endif |
65 | 64 |