Mercurial > hg > match-vamp
comparison MatchVampPlugin.cpp @ 1:de792b8c2801
* update from other repo
author | cannam |
---|---|
date | Wed, 04 Jun 2008 19:32:59 +0000 |
parents | 640f92242cc1 |
children | 80fae79c9472 |
comparison
equal
deleted
inserted
replaced
0:640f92242cc1 | 1:de792b8c2801 |
---|---|
179 MatchVampPlugin::initialise(size_t channels, size_t stepSize, size_t blockSize) | 179 MatchVampPlugin::initialise(size_t channels, size_t stepSize, size_t blockSize) |
180 { | 180 { |
181 if (!pm1) createMatchers(); | 181 if (!pm1) createMatchers(); |
182 if (channels < getMinChannelCount() || | 182 if (channels < getMinChannelCount() || |
183 channels > getMaxChannelCount()) return false; | 183 channels > getMaxChannelCount()) return false; |
184 if (stepSize != getPreferredStepSize() || | 184 if (stepSize > blockSize/2 || |
185 blockSize != getPreferredBlockSize()) return false; | 185 blockSize != getPreferredBlockSize()) return false; |
186 pm1->setHopSize(stepSize); | |
187 pm2->setHopSize(stepSize); | |
186 m_begin = true; | 188 m_begin = true; |
187 m_locked = false; | 189 m_locked = false; |
188 return true; | 190 return true; |
189 } | 191 } |
190 | 192 |