Mercurial > hg > qm-dsp
comparison dsp/rateconversion/Resampler.cpp @ 175:6a634a9081a8
Restore frame pointer... and minor tidy
author | Chris Cannam |
---|---|
date | Tue, 13 May 2014 14:29:48 +0100 |
parents | 6a820c2a3eb2 |
children | 3f30343e1de8 |
comparison
equal
deleted
inserted
replaced
174:fc05ce770413 | 175:6a634a9081a8 |
---|---|
107 int inputSpacing = m_targetRate / m_gcd; | 107 int inputSpacing = m_targetRate / m_gcd; |
108 int outputSpacing = m_sourceRate / m_gcd; | 108 int outputSpacing = m_sourceRate / m_gcd; |
109 | 109 |
110 #ifdef DEBUG_RESAMPLER | 110 #ifdef DEBUG_RESAMPLER |
111 cerr << "resample " << m_sourceRate << " -> " << m_targetRate | 111 cerr << "resample " << m_sourceRate << " -> " << m_targetRate |
112 << ": inputSpacing " << inputSpacing << ", outputSpacing " | 112 << ": inputSpacing " << inputSpacing << ", outputSpacing " |
113 << outputSpacing << ": filter length " << m_filterLength | 113 << outputSpacing << ": filter length " << m_filterLength |
114 << endl; | 114 << endl; |
115 #endif | 115 #endif |
116 | 116 |
117 // Now we have a filter of (odd) length flen in which the lower | 117 // Now we have a filter of (odd) length flen in which the lower |
118 // sample rate corresponds to every n'th point and the higher rate | 118 // sample rate corresponds to every n'th point and the higher rate |
119 // to every m'th where n and m are higher and lower rates divided | 119 // to every m'th where n and m are higher and lower rates divided |