mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
[EMSCRIPTEN] fix regression in audio
This commit is contained in:
parent
f149c387b9
commit
53c304cdd3
@ -59,7 +59,7 @@ var LibraryRWebAudio = {
|
|||||||
var startTime;
|
var startTime;
|
||||||
if (RA.bufIndex) startTime = RA.buffers[RA.bufIndex - 1].endTime;
|
if (RA.bufIndex) startTime = RA.buffers[RA.bufIndex - 1].endTime;
|
||||||
else startTime = RA.context.currentTime;
|
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();
|
var bufferSource = RA.context.createBufferSource();
|
||||||
bufferSource.buffer = RA.buffers[index];
|
bufferSource.buffer = RA.buffers[index];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user