swr: move flush into Resampler