diff data/fileio/CodedAudioFileReader.cpp @ 266:2268963dabd1

* FFT: fix invalid write of normalisation factor in compact mode of disc cache * FFT: fix range problem for normalisation factor in compact mode (it was stored as an unsigned scaled from an assumed float range of 0->1, which is not very plausible and not accurate enough even if true -- use a float instead) * Spectrogram: fix vertical zoom behaviour for log frequency spectrograms: make the thing in the middle of the display remain in the middle after zoom * Overview widget: don't update the detailed waveform if still decoding the audio file (too expensive to do all those redraws)
author Chris Cannam
date Fri, 08 Jun 2007 15:19:50 +0000
parents e08f486e8d8c
children 20028c634494
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp	Wed Jun 06 16:24:55 2007 +0000
+++ b/data/fileio/CodedAudioFileReader.cpp	Fri Jun 08 15:19:50 2007 +0000
@@ -129,11 +129,11 @@
                             m_cacheWriteBufferSize);
 
             m_cacheWriteBufferIndex = 0;
+        }
 
-            if (m_cacheWriteBufferIndex % 10240 == 0 &&
-                m_cacheFileReader) {
-                m_cacheFileReader->updateFrameCount();
-            }
+        if (m_cacheWriteBufferIndex % 10240 == 0 &&
+            m_cacheFileReader) {
+            m_cacheFileReader->updateFrameCount();
         }
         break;