output samples are non-interleaved.
an array of blocks of samples, one for each channel, should be passed to the resample function.