Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
70:bf306158803d | 71:72fa239a4880 |
---|---|
20 #include "base/PlayParameters.h" | 20 #include "base/PlayParameters.h" |
21 #include "base/Layer.h" | 21 #include "base/Layer.h" |
22 | 22 |
23 #include "plugin/RealTimePluginFactory.h" | 23 #include "plugin/RealTimePluginFactory.h" |
24 #include "plugin/RealTimePluginInstance.h" | 24 #include "plugin/RealTimePluginInstance.h" |
25 #include "plugin/PluginXml.h" | |
25 | 26 |
26 #include "AudioDial.h" | 27 #include "AudioDial.h" |
27 #include "LEDButton.h" | 28 #include "LEDButton.h" |
28 | 29 |
29 #include <QGridLayout> | 30 #include <QGridLayout> |
483 | 484 |
484 RealTimePluginInstance *instance = | 485 RealTimePluginInstance *instance = |
485 factory->instantiatePlugin(pluginId, 0, 0, 48000, 1024, 1); | 486 factory->instantiatePlugin(pluginId, 0, 0, 48000, 1024, 1); |
486 if (!instance) return; | 487 if (!instance) return; |
487 | 488 |
488 instance->setParametersFromXml(configurationXml); | 489 PluginXml(instance).setParametersFromXml(configurationXml); |
489 | 490 |
490 PluginParameterDialog *dialog = new PluginParameterDialog(instance, -1, -1, -1); | 491 PluginParameterDialog *dialog = new PluginParameterDialog(instance, -1, -1, -1); |
491 connect(dialog, SIGNAL(pluginConfigurationChanged(QString)), | 492 connect(dialog, SIGNAL(pluginConfigurationChanged(QString)), |
492 this, SLOT(pluginConfigurationChanged(QString))); | 493 this, SLOT(pluginConfigurationChanged(QString))); |
493 | 494 |
494 if (dialog->exec() == QDialog::Accepted) { | 495 if (dialog->exec() == QDialog::Accepted) { |
495 params->setPlayPluginConfiguration(instance->toXmlString()); | 496 params->setPlayPluginConfiguration(PluginXml(instance).toXmlString()); |
496 } else { | 497 } else { |
497 // restore in case we mucked about with the configuration | 498 // restore in case we mucked about with the configuration |
498 // as a consequence of signals from the dialog | 499 // as a consequence of signals from the dialog |
499 params->setPlayPluginConfiguration(configurationXml); | 500 params->setPlayPluginConfiguration(configurationXml); |
500 } | 501 } |