comparison 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
comparison
equal deleted inserted replaced
684:bcca512445f3 688:be43b2fe68e8
270 } else if (optional == "step_size") { 270 } else if (optional == "step_size") {
271 transform.setStepSize(v.value.toUInt()); 271 transform.setStepSize(v.value.toUInt());
272 } else if (optional == "block_size") { 272 } else if (optional == "block_size") {
273 transform.setBlockSize(v.value.toUInt()); 273 transform.setBlockSize(v.value.toUInt());
274 } else if (optional == "window_type") { 274 } else if (optional == "window_type") {
275 cerr << "NOTE: can't handle window type yet (value is \"" 275 transform.setWindowType
276 << v.value.toStdString() << "\")" << endl; 276 (Window<float>::getTypeForName
277 (v.value.toLower().toStdString()));
277 } else if (optional == "sample_rate") { 278 } else if (optional == "sample_rate") {
278 transform.setSampleRate(v.value.toFloat()); 279 transform.setSampleRate(v.value.toFloat());
279 } else if (optional == "start") { 280 } else if (optional == "start") {
280 transform.setStartTime 281 transform.setStartTime
281 (RealTime::fromXsdDuration(v.value.toStdString())); 282 (RealTime::fromXsdDuration(v.value.toStdString()));