Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/PluginAdapter.cpp @ 194:27cfae2a4155
* Make summarising adapter debug optional
* Tidy up template generator output a bit
* Clarify an error message
author | cannam |
---|---|
date | Tue, 30 Sep 2008 13:24:41 +0000 |
parents | d4fbd4e6fdbf |
children |
comparison
equal
deleted
inserted
replaced
193:20393d30baee | 194:27cfae2a4155 |
---|---|
160 | 160 |
161 Plugin *plugin = m_base->createPlugin(48000); | 161 Plugin *plugin = m_base->createPlugin(48000); |
162 | 162 |
163 if (plugin->getVampApiVersion() != VAMP_API_VERSION) { | 163 if (plugin->getVampApiVersion() != VAMP_API_VERSION) { |
164 std::cerr << "Vamp::PluginAdapterBase::Impl::getDescriptor: ERROR: " | 164 std::cerr << "Vamp::PluginAdapterBase::Impl::getDescriptor: ERROR: " |
165 << "Plugin object API version " | 165 << "API version " << plugin->getVampApiVersion() |
166 << plugin->getVampApiVersion() | 166 << " for\nplugin \"" << plugin->getIdentifier() << "\" " |
167 << " does not match actual API version " | 167 << "differs from version " |
168 << VAMP_API_VERSION << std::endl; | 168 << VAMP_API_VERSION << " for adapter.\n" |
169 std::cerr << "(Plugin identifier is: " | 169 << "This plugin is probably linked against a different version of the Vamp SDK\n" |
170 << plugin->getIdentifier() << ")" << std::endl; | 170 << "from the version it was compiled with. It will need to be re-linked correctly\n" |
171 << "before it can be used." << std::endl; | |
171 delete plugin; | 172 delete plugin; |
172 return 0; | 173 return 0; |
173 } | 174 } |
174 | 175 |
175 m_parameters = plugin->getParameterDescriptors(); | 176 m_parameters = plugin->getParameterDescriptors(); |