changeset 22:a83125c623f0

* Add hasDuration to output descriptors
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 18 Sep 2008 17:48:54 +0000
parents 58619878e0e9
children 1a7563c56d88
files plugins/Notes.cpp plugins/Silence.cpp
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/Notes.cpp	Thu Sep 18 11:44:09 2008 +0000
+++ b/plugins/Notes.cpp	Thu Sep 18 17:48:54 2008 +0000
@@ -338,6 +338,7 @@
         d.binCount = 2;
         d.binNames.push_back("Frequency");
         d.binNames.push_back("Velocity");
+        d.hasDuration = true;
     }
 
     d.hasKnownExtents = false;
--- a/plugins/Silence.cpp	Thu Sep 18 11:44:09 2008 +0000
+++ b/plugins/Silence.cpp	Thu Sep 18 17:48:54 2008 +0000
@@ -189,6 +189,7 @@
         d.hasKnownExtents = false;
         d.sampleType = OutputDescriptor::VariableSampleRate;
         d.sampleRate = 0;
+        d.hasDuration = true;
         list.push_back(d);
 
         d.identifier = "noisy";
@@ -199,6 +200,7 @@
         d.hasKnownExtents = false;
         d.sampleType = OutputDescriptor::VariableSampleRate;
         d.sampleRate = 0;
+        d.hasDuration = true;
         list.push_back(d);
     }