Mercurial > hg > svcore
diff data/fileio/AudioFileReader.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/AudioFileReader.cpp Tue Jun 03 11:05:49 2014 +0100 +++ b/data/fileio/AudioFileReader.cpp Wed Jun 18 13:51:16 2014 +0100 @@ -16,23 +16,23 @@ #include "AudioFileReader.h" void -AudioFileReader::getDeInterleavedFrames(size_t start, size_t count, +AudioFileReader::getDeInterleavedFrames(int start, int count, std::vector<SampleBlock> &frames) const { SampleBlock interleaved; getInterleavedFrames(start, count, interleaved); - size_t channels = getChannelCount(); - size_t rc = interleaved.size() / channels; + int channels = getChannelCount(); + int rc = interleaved.size() / channels; frames.clear(); - for (size_t c = 0; c < channels; ++c) { + for (int c = 0; c < channels; ++c) { frames.push_back(SampleBlock()); } - for (size_t i = 0; i < rc; ++i) { - for (size_t c = 0; c < channels; ++c) { + for (int i = 0; i < rc; ++i) { + for (int c = 0; c < channels; ++c) { frames[c].push_back(interleaved[i * channels + c]); } }