Having a look at the " AudioThumbnail" tutorial. At the end there are suggestions on how to make the code more efficient. Example
AudioThumbnailTutorial_03.h separates drawing of audio wave form and playback cursor into two classes and thereby two separate repaints. The text states “we can avoid redrawing the waveform every (playback) frame”
However, I don’t get how the underlying waveform gets restored when the playback cursor has moved without calling repaint. Wouldn’t there be a gap with the wrong color if the waveform is not restored when the cursor has moved to a new position?