Mercurial > hg > svcore
comparison data/fileio/WavFileReader.cpp @ 384:6f6ab834449d spectrogram-cache-rejig
* Merge from trunk
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 11:59:42 +0000 |
parents | c324d410b096 |
children | ecef2f1bec18 |
comparison
equal
deleted
inserted
replaced
337:a6fab10ff9e6 | 384:6f6ab834449d |
---|---|
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; |