diff vamp-support/LoaderRequests.h @ 287:09753ad777db

Add support for ProgramParameters. In theory this means we can select a program and then re-query the plugin's parameters and get the right values back, just as would happen if we were working with the remote extractor directly as a local Vamp plugin.
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 07 Apr 2020 15:56:02 +0100
parents f548eb11ae01
children
line wrap: on
line diff
--- a/vamp-support/LoaderRequests.h	Tue Jan 07 11:20:47 2020 +0000
+++ b/vamp-support/LoaderRequests.h	Tue Apr 07 15:56:02 2020 +0100
@@ -39,7 +39,9 @@
 
 #include "PluginStaticData.h"
 #include "PluginConfiguration.h"
+#include "PluginProgramParameters.h"
 #include "StaticOutputRdf.h"
+#include "RequestResponse.h"
 
 #include <vamp-hostsdk/PluginLoader.h>
 
@@ -116,7 +118,10 @@
 	     defaultChannels,
 	     int(plugin->getPreferredStepSize()),
 	     int(plugin->getPreferredBlockSize()));
-	
+
+        response.programParameters = PluginProgramParameters::fromPlugin
+            (plugin, response.defaultConfiguration);
+        
 	return response;
     }