Mercurial > hg > svcore
diff data/fileio/DecodingWavFileReader.cpp @ 929:59e7fe1b1003 warnfix_no_size_t
Unsigned removals and warning fixes in data/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 14:33:42 +0100 |
parents | f0558e69a074 |
children | d03b3d956358 |
line wrap: on
line diff
--- a/data/fileio/DecodingWavFileReader.cpp Tue Jun 17 13:52:07 2014 +0100 +++ b/data/fileio/DecodingWavFileReader.cpp Tue Jun 17 14:33:42 2014 +0100 @@ -24,7 +24,7 @@ DecodingWavFileReader::DecodingWavFileReader(FileSource source, ResampleMode resampleMode, CacheMode mode, - size_t targetRate, + int targetRate, ProgressReporter *reporter) : CodedAudioFileReader(mode, targetRate), m_source(source), @@ -63,14 +63,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); @@ -120,14 +120,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);