peaks.js
peaks.js copied to clipboard
Animated zoom adapter causes waveform-data.js exception
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.
I suggest that the static adapter should be used by default, until the animated zoom adapter works reliably.