Mercurial > hg > svcore
diff data/fileio/DecodingWavFileReader.cpp @ 935:f960d67ce842 tonioni
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:42:01 +0100 |
parents | d03b3d956358 |
children | cc27f35aa75c |
line wrap: on
line diff
--- a/data/fileio/DecodingWavFileReader.cpp Mon Jun 16 11:28:45 2014 +0100 +++ b/data/fileio/DecodingWavFileReader.cpp Wed Jun 18 13:42:01 2014 +0100 @@ -24,7 +24,7 @@ DecodingWavFileReader::DecodingWavFileReader(FileSource source, ResampleMode resampleMode, CacheMode mode, - size_t targetRate, + int targetRate, bool normalised, ProgressReporter *reporter) : CodedAudioFileReader(mode, targetRate, normalised), @@ -64,14 +64,14 @@ (tr("Decoding %1...").arg(QFileInfo(m_path).fileName())); } - size_t blockSize = 16384; - size_t total = m_original->getFrameCount(); + int blockSize = 16384; + int total = m_original->getFrameCount(); SampleBlock block; - for (size_t i = 0; i < total; i += blockSize) { + for (int i = 0; i < total; i += blockSize) { - size_t count = blockSize; + int count = blockSize; if (i + count > total) count = total - i; m_original->getInterleavedFrames(i, count, block); @@ -121,14 +121,14 @@ m_reader->startSerialised("DecodingWavFileReader::Decode"); } - size_t blockSize = 16384; - size_t total = m_reader->m_original->getFrameCount(); + int blockSize = 16384; + int total = m_reader->m_original->getFrameCount(); SampleBlock block; - for (size_t i = 0; i < total; i += blockSize) { + for (int i = 0; i < total; i += blockSize) { - size_t count = blockSize; + int count = blockSize; if (i + count > total) count = total - i; m_reader->m_original->getInterleavedFrames(i, count, block);