Mercurial > hg > vamp-plugin-sdk
diff host/vamp-simple-host.cpp @ 42:1eb2419fc326
* fix to step size for frequency domain plugins
* textual updates
author | cannam |
---|---|
date | Mon, 30 Oct 2006 10:20:21 +0000 |
parents | ae3e47e76d2d |
children | 3bbe244611bb |
line wrap: on
line diff
--- a/host/vamp-simple-host.cpp Wed Oct 11 11:39:02 2006 +0000 +++ b/host/vamp-simple-host.cpp Mon Oct 30 10:20:21 2006 +0000 @@ -212,10 +212,11 @@ << stepSize << endl; if (blockSize == 0) blockSize = 1024; - if (stepSize == 0) stepSize = blockSize; bool rightBlockSize = true; + if (plugin->getInputDomain() == Vamp::Plugin::FrequencyDomain) { + int p = 1, b = blockSize; while (b) { p <<= 1; @@ -228,6 +229,11 @@ cerr << "Rounding up to " << blockSize << "." << endl; rightBlockSize = false; } + if (stepSize == 0) stepSize = blockSize / 2; + + } else { + + if (stepSize == 0) stepSize = blockSize; } int channels = sfinfo.channels;