api/waveform: use new mdlayher/waveform API