20 std::vector<SampleBlock> &frames)
const 26 int rc = interleaved.size() / channels;
30 for (
int c = 0; c < channels; ++c) {
34 for (
int i = 0; i < rc; ++i) {
35 for (
int c = 0; c < channels; ++c) {
36 frames[c].push_back(interleaved[i * channels + c]);
int getChannelCount() const
std::vector< float > SampleBlock
virtual void getInterleavedFrames(int start, int count, SampleBlock &frames) const =0
Return interleaved samples for count frames from index start.
virtual void getDeInterleavedFrames(int start, int count, std::vector< SampleBlock > &frames) const
Return de-interleaved samples for count frames from index start.