diff rdf/RDFTransformFactory.cpp @ 688:be43b2fe68e8

Set window type from RDF
author Chris Cannam
date Tue, 14 Jun 2011 13:43:03 +0100
parents 18488253a3f4
children 573d45e9487b
line wrap: on
line diff
--- a/rdf/RDFTransformFactory.cpp	Wed May 11 11:04:35 2011 +0100
+++ b/rdf/RDFTransformFactory.cpp	Tue Jun 14 13:43:03 2011 +0100
@@ -272,8 +272,9 @@
                     } else if (optional == "block_size") {
                         transform.setBlockSize(v.value.toUInt());
                     } else if (optional == "window_type") {
-                        cerr << "NOTE: can't handle window type yet (value is \""
-                             << v.value.toStdString() << "\")" << endl;
+                        transform.setWindowType
+                            (Window<float>::getTypeForName
+                             (v.value.toLower().toStdString()));
                     } else if (optional == "sample_rate") {
                         transform.setSampleRate(v.value.toFloat());
                     } else if (optional == "start") {