diff rdf/RDFTransformFactory.cpp @ 1004:7d003fe48225

Write window type too
author Chris Cannam
date Wed, 15 Oct 2014 13:30:14 +0100
parents 274c4362bda6
children d094598f84bd
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;
     }