Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/hostext/PluginInputDomainAdapter.cpp @ 60:087c16cca0d6 host-factory-stuff
...
| author | cannam |
|---|---|
| date | Fri, 25 May 2007 13:26:59 +0000 |
| parents | fa79c4ec847d |
| children | 97c5ac99d725 |
comparison
equal
deleted
inserted
replaced
| 59:fa79c4ec847d | 60:087c16cca0d6 |
|---|---|
| 124 { | 124 { |
| 125 if (m_plugin->getInputDomain() == TimeDomain) { | 125 if (m_plugin->getInputDomain() == TimeDomain) { |
| 126 return m_plugin->process(inputBuffers, timestamp); | 126 return m_plugin->process(inputBuffers, timestamp); |
| 127 } | 127 } |
| 128 | 128 |
| 129 //!!! need to compensate for the fact that the first block is aligned | |
| 130 // with the zero frame but for frequency domain we want it to be | |
| 131 // centred on the zero frame | |
| 132 | |
| 129 for (size_t c = 0; c < m_channels; ++c) { | 133 for (size_t c = 0; c < m_channels; ++c) { |
| 130 | 134 |
| 131 for (size_t i = 0; i < m_blockSize; ++i) { | 135 for (size_t i = 0; i < m_blockSize; ++i) { |
| 132 // Hanning window | 136 // Hanning window |
| 133 m_ri[i] = double(inputBuffers[c][i]) | 137 m_ri[i] = double(inputBuffers[c][i]) |
