mirror of
https://github.com/libretro/RetroArch
synced 2024-12-28 09:29:16 +00:00
[EMSCRIPTEN] fix regression in audio
This commit is contained in:
parent
f149c387b9
commit
53c304cdd3
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user