Mercurial > hg > svgui
diff widgets/PropertyBox.cpp @ 71:72fa239a4880
* Modify to use Vamp SDK for proper feature extraction plugins.
Requires that the vamp-plugin-sdk directory tree be present below
plugin/ (it's separate in Subversion).
author | Chris Cannam |
---|---|
date | Fri, 31 Mar 2006 15:56:35 +0000 |
parents | 6dad2724f3aa |
children | 4b98bda7e94d |
line wrap: on
line diff
--- a/widgets/PropertyBox.cpp Thu Mar 30 15:00:22 2006 +0000 +++ b/widgets/PropertyBox.cpp Fri Mar 31 15:56:35 2006 +0000 @@ -22,6 +22,7 @@ #include "plugin/RealTimePluginFactory.h" #include "plugin/RealTimePluginInstance.h" +#include "plugin/PluginXml.h" #include "AudioDial.h" #include "LEDButton.h" @@ -485,14 +486,14 @@ factory->instantiatePlugin(pluginId, 0, 0, 48000, 1024, 1); if (!instance) return; - instance->setParametersFromXml(configurationXml); + PluginXml(instance).setParametersFromXml(configurationXml); PluginParameterDialog *dialog = new PluginParameterDialog(instance, -1, -1, -1); connect(dialog, SIGNAL(pluginConfigurationChanged(QString)), this, SLOT(pluginConfigurationChanged(QString))); if (dialog->exec() == QDialog::Accepted) { - params->setPlayPluginConfiguration(instance->toXmlString()); + params->setPlayPluginConfiguration(PluginXml(instance).toXmlString()); } else { // restore in case we mucked about with the configuration // as a consequence of signals from the dialog