comparison data/fileio/WavFileReader.cpp @ 232:03a24547cf3c

* Fix crash in short spectrogram paint * Fix incorrect apparent end point for waveforms
author Chris Cannam
date Wed, 14 Feb 2007 17:52:06 +0000
parents 91fdc752e540
children 96a6dd889c68
comparison
equal deleted inserted replaced
231:0031495aba07 232:03a24547cf3c
149 m_lastStart = start; 149 m_lastStart = start;
150 m_lastCount = readCount; 150 m_lastCount = readCount;
151 } 151 }
152 152
153 for (size_t i = 0; i < count * m_fileInfo.channels; ++i) { 153 for (size_t i = 0; i < count * m_fileInfo.channels; ++i) {
154 if (i >= m_bufsiz) {
155 std::cerr << "INTERNAL ERROR: WavFileReader::getInterleavedFrames: " << i << " >= " << m_bufsiz << std::endl;
156 }
154 results.push_back(m_buffer[i]); 157 results.push_back(m_buffer[i]);
155 } 158 }
156 159
157 return; 160 return;
158 } 161 }