From 316597f18ebb4758df25c8de2810d6d130ad00be Mon Sep 17 00:00:00 2001 From: neonloop Date: Sat, 14 Aug 2021 22:39:49 +0000 Subject: Adds auto-frameskip to pcsx_rearmed --- plat_sdl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plat_sdl.c') diff --git a/plat_sdl.c b/plat_sdl.c index ec5b683..395227a 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -273,6 +273,9 @@ float plat_sound_capacity(void) void plat_sound_write(const struct audio_frame *data, int frames) { int consumed = 0; + if (audio.buf_len == 0) + return; + SDL_LockAudio(); while (frames > 0) { -- cgit v1.2.3