setting length of resampler output to next power of 2
minor