I'd probably calculate the peaks at various intervals and save the array of peak values to a file. Should be quite easy to do. Resizable is a bigger challenge though, as you'd need to support peaks at different numbers of samples per pixel. I've used a MipMap approach for this in the past.
↧