comparison data/fileio/WavFileReader.cpp @ 377:166c22eff678

* Ensure waveforms are strictly correct even when using a non-power-of-two non-power-of-sqrt-two block size with cacheing off and painting only small areas at a time
author Chris Cannam
date Thu, 07 Feb 2008 15:25:05 +0000
parents c324d410b096
children ecef2f1bec18
comparison
equal deleted inserted replaced
376:ab24af1271e9 377:166c22eff678
109 WavFileReader::getInterleavedFrames(size_t start, size_t count, 109 WavFileReader::getInterleavedFrames(size_t start, size_t count,
110 SampleBlock &results) const 110 SampleBlock &results) const
111 { 111 {
112 if (count == 0) return; 112 if (count == 0) return;
113 results.clear(); 113 results.clear();
114 results.reserve(count * m_fileInfo.channels);
114 115
115 QMutexLocker locker(&m_mutex); 116 QMutexLocker locker(&m_mutex);
116 117
117 if (!m_file || !m_channelCount) { 118 if (!m_file || !m_channelCount) {
118 return; 119 return;