Skip to content

Commit ea77cb8

Browse files
authored
fix SoundFile.processPeaks() (#547)
1 parent cfc9f0f commit ea77cb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/soundfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,7 @@ class SoundFile {
15061506
* @return {Array} Array of timestamped peaks
15071507
*/
15081508
processPeaks(callback, _initThreshold, _minThreshold, _minPeaks) {
1509+
var self = this;
15091510
var bufLen = this.buffer.length;
15101511
var sampleRate = this.buffer.sampleRate;
15111512
var buffer = this.buffer;

0 commit comments

Comments
 (0)