# HG changeset patch # User Chris Cannam # Date 1143476119 0 # Node ID 749b5521e082f0d0838d66f9312b868c8fab9532 # Parent 3086ff194ea0cb226470735c23fe15e2f9a6d949 * adjust for latency if the plugin reports it diff -r 3086ff194ea0 -r 749b5521e082 transform/RealTimePluginTransform.cpp --- 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);