api/waveform: update to new mdlayher/waveform API