Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 540:1092181784a3 sv-v1.6
...
author | Chris Cannam |
---|---|
date | Mon, 29 Jun 2009 16:25:16 +0000 |
parents | e6e38632e8ea |
children | be5c35d3f409 |
comparison
equal
deleted
inserted
replaced
539:566787389e59 | 540:1092181784a3 |
---|---|
2573 m_drawBuffer.setPixel(x, y, getDisplayValue(v, value)); | 2573 m_drawBuffer.setPixel(x, y, getDisplayValue(v, value)); |
2574 } | 2574 } |
2575 | 2575 |
2576 if (mag.isSet()) { | 2576 if (mag.isSet()) { |
2577 if (sx >= int(m_columnMags.size())) { | 2577 if (sx >= int(m_columnMags.size())) { |
2578 #ifdef DEBUG_SPECTROGRAM | |
2578 std::cerr << "INTERNAL ERROR: " << sx << " >= " | 2579 std::cerr << "INTERNAL ERROR: " << sx << " >= " |
2579 << m_columnMags.size() | 2580 << m_columnMags.size() |
2580 << " at SpectrogramLayer.cpp::paintDrawBuffer" | 2581 << " at SpectrogramLayer.cpp::paintDrawBuffer" |
2581 << std::endl; | 2582 << std::endl; |
2583 #endif | |
2582 } else { | 2584 } else { |
2583 m_columnMags[sx].sample(mag); | 2585 m_columnMags[sx].sample(mag); |
2584 if (overallMag.sample(mag)) overallMagChanged = true; | 2586 if (overallMag.sample(mag)) overallMagChanged = true; |
2585 } | 2587 } |
2586 } | 2588 } |
2777 } | 2779 } |
2778 } | 2780 } |
2779 | 2781 |
2780 if (mag.isSet()) { | 2782 if (mag.isSet()) { |
2781 if (sx >= int(m_columnMags.size())) { | 2783 if (sx >= int(m_columnMags.size())) { |
2784 #ifdef DEBUG_SPECTROGRAM | |
2782 std::cerr << "INTERNAL ERROR: " << sx << " >= " | 2785 std::cerr << "INTERNAL ERROR: " << sx << " >= " |
2783 << m_columnMags.size() | 2786 << m_columnMags.size() |
2784 << " at SpectrogramLayer.cpp::paintDrawBuffer" | 2787 << " at SpectrogramLayer.cpp::paintDrawBuffer" |
2785 << std::endl; | 2788 << std::endl; |
2789 #endif | |
2786 } else { | 2790 } else { |
2787 m_columnMags[sx].sample(mag); | 2791 m_columnMags[sx].sample(mag); |
2788 if (overallMag.sample(mag)) overallMagChanged = true; | 2792 if (overallMag.sample(mag)) overallMagChanged = true; |
2789 } | 2793 } |
2790 } | 2794 } |