Skip to content

Commit 35d8e0d

Browse files
author
Matt Diamond
committed
minor tweaks to currCallback
1 parent 3ec453c commit 35d8e0d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

recorder.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
sampleRate: this.context.sampleRate
1515
}
1616
});
17-
var recording = false;
18-
var currCallback = null;
17+
var recording = false,
18+
currCallback;
1919

2020
this.node.onaudioprocess = function(e){
2121
if (!recording) return;
@@ -54,7 +54,6 @@
5454
var waveData = e.data;
5555
var uri = "data:audio/wav;base64," + btoa(waveData);
5656
currCallback(uri);
57-
currCallback = null;
5857
}
5958

6059
source.connect(this.node);

0 commit comments

Comments
 (0)