audio_waveforms icon indicating copy to clipboard operation
audio_waveforms copied to clipboard

Re-Rendering continues when music stops

Open ty1135 opened this issue 2 years ago • 2 comments

1.Re-Rendering continues when music stops

I've read all source code and the problem is: length in _drawWave will grow as loop continues.

Reproduce: set samples = 10000 or even large

  1. another bug is that : 10000*double = 0.0763 MB, but somehow memory leaks

ty1135 avatar Jul 04 '23 10:07 ty1135

Adding this line "Iterable factoredValue = value.map((v) => v * 0).toList();" into the following makes no difference

if (shouldExtractWaveform) { extractWaveformData( path: path, noOfSamples: noOfSamples, ).then( (value) { Iterable factoredValue = value.map((v) => v * 0).toList(); waveformData ..clear() ..addAll(factoredValue); notifyListeners(); }, );

ty1135 avatar Jul 04 '23 18:07 ty1135

Can you please elaborate more on what is the issue?

ujas-m-simformsolutions avatar Jul 14 '23 09:07 ujas-m-simformsolutions