loadWaveform

fun loadWaveform(waveform: AudioWaveform)

Loads the given waveform asynchronously. A shimmer animation starts immediately; it stops and the waveform is drawn when amplitude data arrives.

Any previously pending amplitude computation is cancelled before the new one begins.