From 53c304cdd33134662ac2c8c503277534b1d0dcea Mon Sep 17 00:00:00 2001 From: ToadKing Date: Fri, 1 Nov 2013 16:23:59 -0400 Subject: [PATCH] [EMSCRIPTEN] fix regression in audio --- emscripten/library_rwebaudio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];