Mercurial > hg > svcore
changeset 688:be43b2fe68e8
Set window type from RDF
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 13:43:03 +0100 |
parents | bcca512445f3 |
children | 573d45e9487b |
files | rdf/RDFTransformFactory.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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") {