Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 43:78515b1e29eb
* Rejig project file a bit to do pkg-config detection &c
and change some HAVE_* symbol names accordingly
* Add selection move/resize/delete
* First stubs for add layer / pane commands
author | Chris Cannam |
---|---|
date | Wed, 01 Mar 2006 18:13:01 +0000 |
parents | 1bdf285c4eac |
children | ad214997dddb |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Mon Feb 27 17:34:41 2006 +0000 +++ b/layer/SpectrogramLayer.cpp Wed Mar 01 18:13:01 2006 +0000 @@ -1327,7 +1327,7 @@ m_layer.m_cache->resize(width, height); m_layer.setCacheColourmap(); - m_layer.m_cache->reset(); +//!!! m_layer.m_cache->reset(); // We don't need a lock when writing to or reading from // the pixels in the cache. We do need to ensure we have @@ -2165,6 +2165,18 @@ if (haveValues) { float dbMin = AudioLevel::multiplier_to_dB(magMin); float dbMax = AudioLevel::multiplier_to_dB(magMax); + QString dbMinString; + QString dbMaxString; + if (dbMin == AudioLevel::DB_FLOOR) { + dbMinString = tr("-Inf"); + } else { + dbMinString = QString("%1").arg(lrintf(dbMin)); + } + if (dbMax == AudioLevel::DB_FLOOR) { + dbMaxString = tr("-Inf"); + } else { + dbMaxString = QString("%1").arg(lrintf(dbMax)); + } if (lrintf(dbMin) != lrintf(dbMax)) { text += tr("dB:\t%1 - %2").arg(lrintf(dbMin)).arg(lrintf(dbMax)); } else {