comparison 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
comparison
equal deleted inserted replaced
265:e08f486e8d8c 266:2268963dabd1
127 sf_writef_float(m_cacheFileWritePtr, 127 sf_writef_float(m_cacheFileWritePtr,
128 m_cacheWriteBuffer, 128 m_cacheWriteBuffer,
129 m_cacheWriteBufferSize); 129 m_cacheWriteBufferSize);
130 130
131 m_cacheWriteBufferIndex = 0; 131 m_cacheWriteBufferIndex = 0;
132 132 }
133 if (m_cacheWriteBufferIndex % 10240 == 0 && 133
134 m_cacheFileReader) { 134 if (m_cacheWriteBufferIndex % 10240 == 0 &&
135 m_cacheFileReader->updateFrameCount(); 135 m_cacheFileReader) {
136 } 136 m_cacheFileReader->updateFrameCount();
137 } 137 }
138 break; 138 break;
139 139
140 case CacheInMemory: 140 case CacheInMemory:
141 m_data.push_back(sample); 141 m_data.push_back(sample);