diff --git a/emscripten/library_rwebaudio.js b/emscripten/library_rwebaudio.js index 25a3489f3e..23142a6b17 100644 --- a/emscripten/library_rwebaudio.js +++ b/emscripten/library_rwebaudio.js @@ -59,7 +59,7 @@ var LibraryRWebAudio = { var startTime; if (RA.bufIndex) startTime = RA.buffers[RA.bufIndex - 1].endTime; else startTime = RA.context.currentTime; - RA.buffers[index].endTime = RA.getCurrentPerfTime() + RA.buffers[index].duration; + RA.buffers[index].endTime = startTime + RA.buffers[index].duration; var bufferSource = RA.context.createBufferSource(); bufferSource.buffer = RA.buffers[index];