Mercurial > hg > qm-dsp
comparison dsp/rateconversion/Resampler.cpp @ 400:8455db688816
Restore frame pointer... and minor tidy
| author | Chris Cannam <c.cannam@qmul.ac.uk> | 
|---|---|
| date | Tue, 13 May 2014 14:29:48 +0100 | 
| parents | 333e27d1efa1 | 
| children | 3f30343e1de8 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 399:e48b3f641038 | 400:8455db688816 | 
|---|---|
| 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 | 
