fix int wave sampling and interpolation