mdlayher / waveform

Go package capable of generating waveform images from audio streams. MIT Licensed.
MIT License
353 stars 28 forks source link

unlimited memory usage #7

Open splace opened 8 years ago

splace commented 8 years ago

when i generate with this;

img, err := waveform.Generate(out,waveform.Resolution(8000),bColor,fColor)

with a wave file with 8k samples per second, its fine, using 6MB memory in 0.01sec, but

img, err := waveform.Generate(out,waveform.Resolution(10000),bColor,fColor)

(ie when resolution slightly higher than the sample rate, )

i had to kill the process at 6GB mem usage.