Audio Performance Change

changed bufferSource variable to constant...This fixes the constant sound popping in Safari.
This commit is contained in:
Shane Mouton 2017-09-26 20:53:02 -04:00 committed by GitHub
parent 8ec326a43f
commit cf81ddcb4e

View File

@ -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);