[EMSCRIPTEN] fix regression in audio

This commit is contained in:
ToadKing 2013-11-01 16:23:59 -04:00
parent f149c387b9
commit 53c304cdd3

View File

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