* Add hasDuration to output descriptors
authorChris Cannam <cannam@all-day-breakfast.com>
Thu, 18 Sep 2008 17:48:54 +0000 (17:48 +0000)
committerChris Cannam <cannam@all-day-breakfast.com>
Thu, 18 Sep 2008 17:48:54 +0000 (17:48 +0000)
plugins/Notes.cpp
plugins/Silence.cpp

index 78b1ac3..11a73c2 100644 (file)
@@ -338,6 +338,7 @@ Notes::getOutputDescriptors() const
         d.binCount = 2;
         d.binNames.push_back("Frequency");
         d.binNames.push_back("Velocity");
         d.binCount = 2;
         d.binNames.push_back("Frequency");
         d.binNames.push_back("Velocity");
+        d.hasDuration = true;
     }
 
     d.hasKnownExtents = false;
     }
 
     d.hasKnownExtents = false;
index 7369276..1a689fc 100644 (file)
@@ -189,6 +189,7 @@ Silence::getOutputDescriptors() const
         d.hasKnownExtents = false;
         d.sampleType = OutputDescriptor::VariableSampleRate;
         d.sampleRate = 0;
         d.hasKnownExtents = false;
         d.sampleType = OutputDescriptor::VariableSampleRate;
         d.sampleRate = 0;
+        d.hasDuration = true;
         list.push_back(d);
 
         d.identifier = "noisy";
         list.push_back(d);
 
         d.identifier = "noisy";
@@ -199,6 +200,7 @@ Silence::getOutputDescriptors() const
         d.hasKnownExtents = false;
         d.sampleType = OutputDescriptor::VariableSampleRate;
         d.sampleRate = 0;
         d.hasKnownExtents = false;
         d.sampleType = OutputDescriptor::VariableSampleRate;
         d.sampleRate = 0;
+        d.hasDuration = true;
         list.push_back(d);
     }
 
         list.push_back(d);
     }