Mercurial > hg > match-vamp
diff MatchVampPlugin.cpp @ 1:de792b8c2801
* update from other repo
author | cannam |
---|---|
date | Wed, 04 Jun 2008 19:32:59 +0000 |
parents | 640f92242cc1 |
children | 80fae79c9472 |
line wrap: on
line diff
--- a/MatchVampPlugin.cpp Wed Oct 24 12:13:43 2007 +0000 +++ b/MatchVampPlugin.cpp Wed Jun 04 19:32:59 2008 +0000 @@ -181,8 +181,10 @@ if (!pm1) createMatchers(); if (channels < getMinChannelCount() || channels > getMaxChannelCount()) return false; - if (stepSize != getPreferredStepSize() || + if (stepSize > blockSize/2 || blockSize != getPreferredBlockSize()) return false; + pm1->setHopSize(stepSize); + pm2->setHopSize(stepSize); m_begin = true; m_locked = false; return true;