Mercurial > hg > svcore
diff data/fileio/AudioFileReader.cpp @ 1527:710e6250a401 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:14 +0100 |
parents | 54af1e21705c |
children |
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.cpp Mon Dec 12 15:18:52 2016 +0000 +++ b/data/fileio/AudioFileReader.cpp Mon Sep 17 13:51:14 2018 +0100 @@ -17,17 +17,17 @@ using std::vector; -vector<vector<float>> +vector<floatvec_t> AudioFileReader::getDeInterleavedFrames(sv_frame_t start, sv_frame_t count) const { - vector<float> interleaved = getInterleavedFrames(start, count); + floatvec_t interleaved = getInterleavedFrames(start, count); int channels = getChannelCount(); if (channels == 1) return { interleaved }; sv_frame_t rc = interleaved.size() / channels; - vector<vector<float>> frames(channels, vector<float>(rc, 0.f)); + vector<floatvec_t> frames(channels, floatvec_t(rc, 0.f)); for (int c = 0; c < channels; ++c) { for (sv_frame_t i = 0; i < rc; ++i) {