all repos — mgba @ e073986ea83e4b272a1a92bb8d4d9e2e938fec1b

mGBA Game Boy Advance Emulator

Switch: Increase allowable queued buffers when exiting fast forward
Vicki Pfau vi@endrift.com
Tue, 23 Mar 2021 20:51:02 -0700
commit

e073986ea83e4b272a1a92bb8d4d9e2e938fec1b

parent

f34fa2b6af4f7cf196cc7ab76b6c10acff11b8b1

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/switch/main.csrc/platform/switch/main.c

@@ -505,7 +505,7 @@

static void _setFrameLimiter(struct mGUIRunner* runner, bool limit) { UNUSED(runner); if (!frameLimiter && limit) { - while (enqueuedBuffers > 1) { + while (enqueuedBuffers > 2) { AudioOutBuffer* releasedBuffers; u32 audoutNReleasedBuffers; audoutWaitPlayFinish(&releasedBuffers, &audoutNReleasedBuffers, 100000000);