Mercurial > hg > decimation
comparison garage-resampler/Resampler.h @ 8:94c1cadc6caf
Avoid vector reallocation on every reconstructed output sample
author | Chris Cannam |
---|---|
date | Wed, 16 Oct 2013 13:33:18 +0100 |
parents | 1c3ab56ee9b5 |
children | 66abf86c864d |
comparison
equal
deleted
inserted
replaced
7:dfec65a1ca6b | 8:94c1cadc6caf |
---|---|
53 }; | 53 }; |
54 | 54 |
55 Phase *m_phaseData; | 55 Phase *m_phaseData; |
56 int m_phase; | 56 int m_phase; |
57 std::vector<double> m_buffer; | 57 std::vector<double> m_buffer; |
58 int m_bufferOrigin; | |
58 | 59 |
59 void initialise(); | 60 void initialise(); |
60 double reconstructOne(); | 61 double reconstructOne(); |
61 }; | 62 }; |
62 | 63 |