Mercurial > hg > sonic-annotator
comparison runner/FeatureExtractionManager.cpp @ 6:b6431f86f307
* possible progress fix
author | Chris Cannam |
---|---|
date | Thu, 11 Dec 2008 15:18:43 +0000 |
parents | 03a02c1f0a9f |
children | f98b58fb294f |
comparison
equal
deleted
inserted
replaced
5:b74df6cb24cb | 6:b6431f86f307 |
---|---|
542 writeFeatures(audioSource, plugin, featureSet); | 542 writeFeatures(audioSource, plugin, featureSet); |
543 } | 543 } |
544 } | 544 } |
545 | 545 |
546 int pp = progress; | 546 int pp = progress; |
547 progress = ((i - startFrame) * 100) / (endFrame - startFrame); | 547 progress = int(((i - startFrame) * 100.0) / (endFrame - startFrame) + 0.1); |
548 if (progress > pp) extractionProgress.setProgress(progress); | 548 if (progress > pp) extractionProgress.setProgress(progress); |
549 } | 549 } |
550 | 550 |
551 for (PluginMap::iterator pi = m_plugins.begin(); | 551 for (PluginMap::iterator pi = m_plugins.begin(); |
552 pi != m_plugins.end(); ++pi) { | 552 pi != m_plugins.end(); ++pi) { |