changeset 1004:7d003fe48225

Write window type too
author Chris Cannam
date Wed, 15 Oct 2014 13:30:14 +0100
parents 274c4362bda6
children 6b2a8b34e9d3
files rdf/RDFTransformFactory.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rdf/RDFTransformFactory.cpp	Wed Oct 15 13:06:27 2014 +0100
+++ b/rdf/RDFTransformFactory.cpp	Wed Oct 15 13:30:14 2014 +0100
@@ -400,6 +400,11 @@
     if (transform.getBlockSize() != 0) {
         s << "    vamp:block_size \"" << transform.getBlockSize() << "\"^^xsd:int ; " << endl;
     }
+    if (transform.getWindowType() != HanningWindow) {
+        s << "    vamp:window_type \"" <<
+            Window<float>::getNameForType(transform.getWindowType()).c_str()
+          << "\" ; " << endl;
+    }
     if (transform.getStartTime() != RealTime::zeroTime) {
         s << "    vamp:start \"" << transform.getStartTime().toXsdDuration().c_str() << "\"^^xsd:duration ; " << endl;
     }