Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/PluginAdapter.cpp @ 192:d4fbd4e6fdbf
* Add hasDuration to output descriptor as well as the features themselves
| author | cannam |
|---|---|
| date | Thu, 18 Sep 2008 16:08:28 +0000 |
| parents | 5ce2c3f79a45 |
| children | 27cfae2a4155 |
comparison
equal
deleted
inserted
replaced
| 191:d1bdcd4a226f | 192:d4fbd4e6fdbf |
|---|---|
| 164 std::cerr << "Vamp::PluginAdapterBase::Impl::getDescriptor: ERROR: " | 164 std::cerr << "Vamp::PluginAdapterBase::Impl::getDescriptor: ERROR: " |
| 165 << "Plugin object API version " | 165 << "Plugin object API version " |
| 166 << plugin->getVampApiVersion() | 166 << plugin->getVampApiVersion() |
| 167 << " does not match actual API version " | 167 << " does not match actual API version " |
| 168 << VAMP_API_VERSION << std::endl; | 168 << VAMP_API_VERSION << std::endl; |
| 169 std::cerr << "(Plugin identifier is: " | |
| 170 << plugin->getIdentifier() << ")" << std::endl; | |
| 169 delete plugin; | 171 delete plugin; |
| 170 return 0; | 172 return 0; |
| 171 } | 173 } |
| 172 | 174 |
| 173 m_parameters = plugin->getParameterDescriptors(); | 175 m_parameters = plugin->getParameterDescriptors(); |
| 680 case Plugin::OutputDescriptor::VariableSampleRate: | 682 case Plugin::OutputDescriptor::VariableSampleRate: |
| 681 desc->sampleType = vampVariableSampleRate; break; | 683 desc->sampleType = vampVariableSampleRate; break; |
| 682 } | 684 } |
| 683 | 685 |
| 684 desc->sampleRate = od.sampleRate; | 686 desc->sampleRate = od.sampleRate; |
| 687 desc->hasDuration = od.hasDuration; | |
| 685 | 688 |
| 686 return desc; | 689 return desc; |
| 687 } | 690 } |
| 688 | 691 |
| 689 VampFeatureList * | 692 VampFeatureList * |
