Mercurial > hg > qm-vamp-plugins
comparison plugins/SegmenterPlugin.cpp @ 190:af6a5ba00a8f
Some fixes for MSVC
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 01 Feb 2018 16:36:55 +0000 |
parents | f96ea0e4b475 |
children |
comparison
equal
deleted
inserted
replaced
189:4e3bd932c195 | 190:af6a5ba00a8f |
---|---|
196 nSegmentTypes = int(value + 0.0001); | 196 nSegmentTypes = int(value + 0.0001); |
197 return; | 197 return; |
198 } | 198 } |
199 | 199 |
200 if (param == "featureType") { | 200 if (param == "featureType") { |
201 if (featureType != feature_types(value)) // feature type changed, create a new segmenter | 201 int nval = int(value + 0.5); |
202 { | 202 if (featureType != feature_types(nval)) { // feature type changed, create a new segmenter |
203 featureType = feature_types(value); | 203 featureType = feature_types(nval); |
204 makeSegmenter(); | 204 makeSegmenter(); |
205 } | 205 } |
206 return; | 206 return; |
207 } | 207 } |
208 | 208 |