Mercurial > hg > svcore
diff transform/FeatureExtractionModelTransformer.cpp @ 843:e802e550a1f2
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 13:35:08 +0000 |
parents | 98cf98a217d2 |
children | 2d53205f70cd 786ee8d1f30e |
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp Tue Nov 26 11:16:37 2013 +0000 +++ b/transform/FeatureExtractionModelTransformer.cpp Tue Nov 26 13:35:08 2013 +0000 @@ -177,7 +177,7 @@ { DenseTimeValueModel *input = getConformingInput(); -// std::cerr << "FeatureExtractionModelTransformer::createOutputModel: sample type " << m_descriptor->sampleType << ", rate " << m_descriptor->sampleRate << std::endl; +// cerr << "FeatureExtractionModelTransformer::createOutputModel: sample type " << m_descriptor->sampleType << ", rate " << m_descriptor->sampleRate << endl; PluginRDFDescription description(m_transform.getPluginIdentifier()); QString outputId = m_transform.getOutput(); @@ -190,8 +190,8 @@ binCount = m_descriptor->binCount; } -// std::cerr << "FeatureExtractionModelTransformer: output bin count " -// << binCount << std::endl; +// cerr << "FeatureExtractionModelTransformer: output bin count " +// << binCount << endl; if (binCount > 0 && m_descriptor->hasKnownExtents) { minValue = m_descriptor->minValue; @@ -205,8 +205,8 @@ if (m_descriptor->sampleType != Vamp::Plugin::OutputDescriptor::OneSamplePerStep) { if (m_descriptor->sampleRate > input->getSampleRate()) { - std::cerr << "WARNING: plugin reports output sample rate as " - << m_descriptor->sampleRate << " (can't display features with finer resolution than the input rate of " << input->getSampleRate() << ")" << std::endl; + cerr << "WARNING: plugin reports output sample rate as " + << m_descriptor->sampleRate << " (can't display features with finer resolution than the input rate of " << input->getSampleRate() << ")" << endl; } } @@ -527,7 +527,7 @@ } error = fftModels[ch]->getError(); if (error != "") { - std::cerr << "FeatureExtractionModelTransformer::run: Abandoning, error is " << error << std::endl; + cerr << "FeatureExtractionModelTransformer::run: Abandoning, error is " << error << endl; m_abandoned = true; m_message = error; } @@ -642,11 +642,11 @@ { size_t inputRate = m_input.getModel()->getSampleRate(); -// std::cerr << "FeatureExtractionModelTransformer::addFeature: blockFrame = " +// cerr << "FeatureExtractionModelTransformer::addFeature: blockFrame = " // << blockFrame << ", hasTimestamp = " << feature.hasTimestamp // << ", timestamp = " << feature.timestamp << ", hasDuration = " // << feature.hasDuration << ", duration = " << feature.duration -// << std::endl; +// << endl; int binCount = 1; if (m_descriptor->hasFixedBinCount) { @@ -659,10 +659,10 @@ Vamp::Plugin::OutputDescriptor::VariableSampleRate) { if (!feature.hasTimestamp) { - std::cerr + cerr << "WARNING: FeatureExtractionModelTransformer::addFeature: " << "Feature has variable sample rate but no timestamp!" - << std::endl; + << endl; return; } else { frame = Vamp::RealTime::realTime2Frame(feature.timestamp, inputRate);