peaks.js icon indicating copy to clipboard operation
peaks.js copied to clipboard

Animated zoom adapter causes waveform-data.js exception

Open chrisn opened this issue 9 years ago • 1 comments

Changing the zoom level can cause the following exception to be thrown:

Uncaught RangeError: options.output_index should be a positive integer value. [-74]

To reproduce the error, open the demo page and scroll the zoom-view to the end of the audio. Place the playhead at about 00:30, then click the "zoom out" button twice.

The exception is triggered from the view.rootData.resample() call in views/zooms/animated.js.

chrisn avatar Aug 09 '16 10:08 chrisn

I suggest that the static adapter should be used by default, until the animated zoom adapter works reliably.

chrisn avatar Aug 09 '16 10:08 chrisn