Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | 3b128519773c |
children | 4806715f7a19 |
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp Thu May 12 17:31:43 2011 +0100 +++ b/layer/SpectrumLayer.cpp Mon May 16 17:19:25 2011 +0100 @@ -57,7 +57,7 @@ void SpectrumLayer::setModel(DenseTimeValueModel *model) { - std::cerr << "SpectrumLayer::setModel(" << model << ") from " << m_originModel << std::endl; + DEBUG << "SpectrumLayer::setModel(" << model << ") from " << m_originModel << endl; if (m_originModel == model) return; @@ -79,7 +79,7 @@ void SpectrumLayer::setChannel(int channel) { - std::cerr << "SpectrumLayer::setChannel(" << channel << ") from " << m_channel << std::endl; + DEBUG << "SpectrumLayer::setChannel(" << channel << ") from " << m_channel << endl; m_channelSet = true; @@ -654,12 +654,12 @@ { if (!m_originModel || !m_originModel->isOK() || !m_originModel->isReady()) { - std::cerr << "SpectrumLayer::paint: no origin model, or origin model not OK or not ready" << std::endl; + DEBUG << "SpectrumLayer::paint: no origin model, or origin model not OK or not ready" << endl; return; } if (m_newFFTNeeded) { - std::cerr << "SpectrumLayer::paint: new FFT needed, calling setupFFT" << std::endl; + DEBUG << "SpectrumLayer::paint: new FFT needed, calling setupFFT" << endl; const_cast<SpectrumLayer *>(this)->setupFFT(); //ugh } @@ -682,7 +682,7 @@ // draw peak lines -// std::cerr << "Showing peaks..." << std::endl; +// DEBUG << "Showing peaks..." << endl; size_t col = v->getCentreFrame() / fft->getResolution();