Mercurial > hg > piper-cpp
comparison 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 |
comparison
equal
deleted
inserted
replaced
286:b3b2e092bd61 | 287:09753ad777db |
---|---|
37 #ifndef PIPER_LOADER_REQUESTS_H | 37 #ifndef PIPER_LOADER_REQUESTS_H |
38 #define PIPER_LOADER_REQUESTS_H | 38 #define PIPER_LOADER_REQUESTS_H |
39 | 39 |
40 #include "PluginStaticData.h" | 40 #include "PluginStaticData.h" |
41 #include "PluginConfiguration.h" | 41 #include "PluginConfiguration.h" |
42 #include "PluginProgramParameters.h" | |
42 #include "StaticOutputRdf.h" | 43 #include "StaticOutputRdf.h" |
44 #include "RequestResponse.h" | |
43 | 45 |
44 #include <vamp-hostsdk/PluginLoader.h> | 46 #include <vamp-hostsdk/PluginLoader.h> |
45 | 47 |
46 #include <map> | 48 #include <map> |
47 #include <string> | 49 #include <string> |
114 response.defaultConfiguration = PluginConfiguration::fromPlugin | 116 response.defaultConfiguration = PluginConfiguration::fromPlugin |
115 (plugin, | 117 (plugin, |
116 defaultChannels, | 118 defaultChannels, |
117 int(plugin->getPreferredStepSize()), | 119 int(plugin->getPreferredStepSize()), |
118 int(plugin->getPreferredBlockSize())); | 120 int(plugin->getPreferredBlockSize())); |
119 | 121 |
122 response.programParameters = PluginProgramParameters::fromPlugin | |
123 (plugin, response.defaultConfiguration); | |
124 | |
120 return response; | 125 return response; |
121 } | 126 } |
122 | 127 |
123 ConfigurationResponse | 128 ConfigurationResponse |
124 configurePlugin(ConfigurationRequest req) { | 129 configurePlugin(ConfigurationRequest req) { |