Align buffer size on a sample.