Mercurial > hg > piper-cpp
comparison vamp-support/LoaderRequests.h @ 108:247d8d533a9c
Cut down vastly on the number of config.pri files and places where their contents has to be effectively duplicated without them
| author | Chris Cannam <c.cannam@qmul.ac.uk> | 
|---|---|
| date | Mon, 24 Oct 2016 17:53:33 +0100 | 
| parents | 427c4c725085 | 
| children | 5b113c87b6e6 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 107:2586f4be738c | 108:247d8d533a9c | 
|---|---|
| 88 loader->getPluginCategory(req.pluginKey), | 88 loader->getPluginCategory(req.pluginKey), | 
| 89 plugin); | 89 plugin); | 
| 90 | 90 | 
| 91 int defaultChannels = 0; | 91 int defaultChannels = 0; | 
| 92 if (plugin->getMinChannelCount() == plugin->getMaxChannelCount()) { | 92 if (plugin->getMinChannelCount() == plugin->getMaxChannelCount()) { | 
| 93 defaultChannels = plugin->getMinChannelCount(); | 93 defaultChannels = int(plugin->getMinChannelCount()); | 
| 94 } | 94 } | 
| 95 | 95 | 
| 96 response.defaultConfiguration = PluginConfiguration::fromPlugin | 96 response.defaultConfiguration = PluginConfiguration::fromPlugin | 
| 97 (plugin, | 97 (plugin, | 
| 98 defaultChannels, | 98 defaultChannels, | 
| 99 plugin->getPreferredStepSize(), | 99 int(plugin->getPreferredStepSize()), | 
| 100 plugin->getPreferredBlockSize()); | 100 int(plugin->getPreferredBlockSize())); | 
| 101 | 101 | 
| 102 return response; | 102 return response; | 
| 103 } | 103 } | 
| 104 | 104 | 
| 105 ConfigurationResponse | 105 ConfigurationResponse | 
