Resampling of waveform data