diff vamp-sdk/PluginHostAdapter.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 006a775133b1
children fe30a25ee4f8
line wrap: on
line diff
--- a/vamp-sdk/PluginHostAdapter.cpp	Thu Sep 18 11:47:05 2008 +0000
+++ b/vamp-sdk/PluginHostAdapter.cpp	Thu Sep 18 16:08:28 2008 +0000
@@ -341,6 +341,12 @@
 
         d.sampleRate = sd->sampleRate;
 
+        if (m_descriptor->vampApiVersion >= 2) {
+            d.hasDuration = sd->hasDuration;
+        } else {
+            d.hasDuration = false;
+        }
+
         list.push_back(d);
 
         m_descriptor->releaseOutputDescriptor(sd);