Merge pull request #5480 from ismouton/master

Audio Performance Change
This commit is contained in:
Twinaphex 2017-09-27 03:21:55 +02:00 committed by GitHub
commit 9302e5627e

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