Mercurial > hg > piper-cpp
comparison vamp-support/LoaderRequests.h @ 244:f548eb11ae01
Rename RdfTypes (which sounds like a set of type declarations) to
StaticOutputRdf
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Thu, 15 Jun 2017 09:09:07 +0100 |
parents | e0e3d9efa774 |
children | 09753ad777db |
comparison
equal
deleted
inserted
replaced
243:498f899a91b6 | 244:f548eb11ae01 |
---|---|
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 "RdfTypes.h" | 42 #include "StaticOutputRdf.h" |
43 | 43 |
44 #include <vamp-hostsdk/PluginLoader.h> | 44 #include <vamp-hostsdk/PluginLoader.h> |
45 | 45 |
46 #include <map> | 46 #include <map> |
47 #include <string> | 47 #include <string> |
74 Vamp::Plugin *p = loader->loadPlugin(key, 44100, 0); | 74 Vamp::Plugin *p = loader->loadPlugin(key, 44100, 0); |
75 if (!p) continue; | 75 if (!p) continue; |
76 auto category = loader->getPluginCategory(key); | 76 auto category = loader->getPluginCategory(key); |
77 PluginStaticData psd = | 77 PluginStaticData psd = |
78 PluginStaticData::fromPlugin(key, category, p); | 78 PluginStaticData::fromPlugin(key, category, p); |
79 psd.staticOutputInfo = RdfTypes().loadStaticOutputInfo(key); | 79 psd.staticOutputInfo = StaticOutputRdf().loadStaticOutputInfo(key); |
80 response.available.push_back(psd); | 80 response.available.push_back(psd); |
81 delete p; | 81 delete p; |
82 } | 82 } |
83 | 83 |
84 return response; | 84 return response; |
102 (req.pluginKey, | 102 (req.pluginKey, |
103 loader->getPluginCategory(req.pluginKey), | 103 loader->getPluginCategory(req.pluginKey), |
104 plugin); | 104 plugin); |
105 | 105 |
106 response.staticData.staticOutputInfo = | 106 response.staticData.staticOutputInfo = |
107 RdfTypes().loadStaticOutputInfo(req.pluginKey); | 107 StaticOutputRdf().loadStaticOutputInfo(req.pluginKey); |
108 | 108 |
109 int defaultChannels = 0; | 109 int defaultChannels = 0; |
110 if (plugin->getMinChannelCount() == plugin->getMaxChannelCount()) { | 110 if (plugin->getMinChannelCount() == plugin->getMaxChannelCount()) { |
111 defaultChannels = int(plugin->getMinChannelCount()); | 111 defaultChannels = int(plugin->getMinChannelCount()); |
112 } | 112 } |