Mercurial > hg > svcore
diff data/fileio/WavFileReader.cpp @ 936:0c1d6de8f44b
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:51:16 +0100 |
parents | 59e7fe1b1003 |
children | cc27f35aa75c |
line wrap: on
line diff
--- a/data/fileio/WavFileReader.cpp Tue Jun 03 11:05:49 2014 +0100 +++ b/data/fileio/WavFileReader.cpp Wed Jun 18 13:51:16 2014 +0100 @@ -89,7 +89,7 @@ { QMutexLocker locker(&m_mutex); - size_t prevCount = m_fileInfo.frames; + int prevCount = m_fileInfo.frames; if (m_file) { sf_close(m_file); @@ -123,7 +123,7 @@ } void -WavFileReader::getInterleavedFrames(size_t start, size_t count, +WavFileReader::getInterleavedFrames(int start, int count, SampleBlock &results) const { if (count == 0) return; @@ -173,7 +173,7 @@ m_lastCount = readCount; } - for (size_t i = 0; i < count * m_fileInfo.channels; ++i) { + for (int i = 0; i < count * m_fileInfo.channels; ++i) { if (i >= m_bufsiz) { cerr << "INTERNAL ERROR: WavFileReader::getInterleavedFrames: " << i << " >= " << m_bufsiz << endl; }