Mercurial > hg > qm-vamp-plugins
comparison plugins/ConstantQSpectrogram.cpp @ 214:23b2a2f93c5a
Merge from branch MSVC
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 27 Apr 2018 15:48:50 +0100 |
parents | 28850f3cf65b |
children | c9c562f37dd7 |
comparison
equal
deleted
inserted
replaced
186:8dca49290db9 | 214:23b2a2f93c5a |
---|---|
211 } | 211 } |
212 | 212 |
213 if (channels < getMinChannelCount() || | 213 if (channels < getMinChannelCount() || |
214 channels > getMaxChannelCount()) return false; | 214 channels > getMaxChannelCount()) return false; |
215 | 215 |
216 if (m_inputSampleRate > 384000) { | |
217 std::cerr << "ConstantQSpectrogram::initialise: Maximum input sample rate is 384000" << std::endl; | |
218 return false; | |
219 } | |
220 | |
216 setupConfig(); | 221 setupConfig(); |
217 | 222 |
218 m_cq = new ConstantQ(m_config); | 223 m_cq = new ConstantQ(m_config); |
219 m_bins = m_cq->getK(); | 224 m_bins = m_cq->getK(); |
220 m_cq->sparsekernel(); | 225 m_cq->sparsekernel(); |