Mercurial > hg > svcore
changeset 583:ecbd99d5d2c4
* fix to rounding problems in plugin parameter box
author | Chris Cannam |
---|---|
date | Mon, 30 Mar 2009 13:47:00 +0000 |
parents | 442e2ff876aa |
children | bf1f6d68a142 |
files | transform/Transform.cpp transform/TransformFactory.cpp |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/transform/Transform.cpp Fri Mar 27 16:27:12 2009 +0000 +++ b/transform/Transform.cpp Mon Mar 30 13:47:00 2009 +0000 @@ -111,7 +111,7 @@ bool Transform::operator==(const Transform &t) const { - return + bool identical = m_id == t.m_id && m_parameters == t.m_parameters && m_configuration == t.m_configuration && @@ -123,6 +123,14 @@ m_startTime == t.m_startTime && m_duration == t.m_duration && m_sampleRate == t.m_sampleRate; +/* + std::cerr << "Transform::operator==: identical = " << identical << std::endl; + std::cerr << "A = " << std::endl; + std::cerr << toXmlString().toStdString() << std::endl; + std::cerr << "B = " << std::endl; + std::cerr << t.toXmlString().toStdString() << std::endl; +*/ + return identical; } bool
--- a/transform/TransformFactory.cpp Fri Mar 27 16:27:12 2009 +0000 +++ b/transform/TransformFactory.cpp Mon Mar 30 13:47:00 2009 +0000 @@ -930,6 +930,9 @@ for (Vamp::PluginBase::ParameterList::const_iterator i = parameters.begin(); i != parameters.end(); ++i) { pmap[i->identifier.c_str()] = plugin->getParameter(i->identifier); +// std::cerr << "TransformFactory::setParametersFromPlugin: parameter " +// << i->identifier << " -> value " << +// pmap[i->identifier.c_str()] << std::endl; } transform.setParameters(pmap);