change blocking conditions

This commit is contained in:
Ethan O'Brien 2023-06-30 12:11:03 -05:00 committed by LibretroAdmin
parent 88778bc137
commit 7ac3dcd5fe
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ var LibraryRWebAudio = {
block: function() { block: function() {
do { do {
RA.process(); RA.process();
} while (RA.bufIndex === RA.numBuffers-1); } while (RA.bufIndex === RA.numBuffers-2);
} }
}, },
@ -114,7 +114,7 @@ var LibraryRWebAudio = {
var count = 0; var count = 0;
while (samples) { while (samples) {
if (RA.bufIndex === RA.numBuffers-1) { if (RA.bufIndex === RA.numBuffers-2) {
if (RA.nonblock) break; if (RA.nonblock) break;
else RA.block(); else RA.block();
} }