Mercurial > hg > svcore
changeset 61:749b5521e082
* adjust for latency if the plugin reports it
author | Chris Cannam |
---|---|
date | Mon, 27 Mar 2006 16:15:19 +0000 |
parents | 3086ff194ea0 |
children | 33285f426852 |
files | transform/RealTimePluginTransform.cpp |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/transform/RealTimePluginTransform.cpp Mon Mar 27 15:03:02 2006 +0000 +++ b/transform/RealTimePluginTransform.cpp Mon Mar 27 16:15:19 2006 +0000 @@ -114,9 +114,6 @@ while (blockFrame < endFrame) { - std::cout << "RealTimePluginTransform::run: blockFrame " - << blockFrame; - size_t completion = (((blockFrame - startFrame) / blockSize) * 99) / ( (endFrame - startFrame) / blockSize); @@ -143,9 +140,8 @@ float value = m_plugin->getControlOutputValue(m_outputNo); - std::cout << " value " << value << std::endl; - - model->addPoint(SparseTimeValueModel::Point(blockFrame, value, "")); + model->addPoint(SparseTimeValueModel::Point + (blockFrame - m_plugin->getLatency(), value, "")); if (blockFrame == startFrame || completion > prevCompletion) { model->setCompletion(completion);