[linux-audio-dev] Algorithm for displaying waveforms