A function for drawing waveforms from raw pcm audio data