Skip to content

Commit

Permalink
Audio Performance Change
Browse files Browse the repository at this point in the history
changed bufferSource variable to constant...This fixes the constant sound popping in Safari.
  • Loading branch information
ismouton authored Sep 27, 2017
1 parent 8ec326a commit cf81ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emscripten/library_rwebaudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var LibraryRWebAudio = {
else startTime = RA.context.currentTime;
RA.buffers[index].endTime = startTime + RA.buffers[index].duration;

var bufferSource = RA.context.createBufferSource();
const bufferSource = RA.context.createBufferSource();
bufferSource.buffer = RA.buffers[index];
bufferSource.connect(RA.context.destination);
bufferSource.start(startTime);
Expand Down

0 comments on commit cf81ddc

Please sign in to comment.