From 47e321d0f0845f0f28cb97a07dd5096318f2969d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Nov 2021 01:36:04 +0100 Subject: [PATCH] Fixed the audio/video desync after a few minutes (thanks to itixxxx). May be a workaround for now but seems to work fine (NEEDS TO UPDATE platform/libpicofe submodule too). --- .gitmodules | 2 +- platform/common/emu.c | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.gitmodules b/.gitmodules index 026e51cb..6bf6c4ca 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "platform/libpicofe"] path = platform/libpicofe - url = https://github.com/FunKey-Project/picofe-irixxxx.git + url = https://github.com/DrUm78/picofe-irixxxx [submodule "cpu/cyclone"] path = cpu/cyclone url = https://github.com/irixxxx/cyclone68000.git diff --git a/platform/common/emu.c b/platform/common/emu.c index 51d66c87..3e82b1fa 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -1765,19 +1765,6 @@ void emu_loop(void) if (timestamp_x3 - timestamp_fps_x3 >= ms_to_ticks(1000) * 3) { -#define FUNKEY_RESYNCHRONIZE_AUDIO_SECS (5*60) -#ifdef FUNKEY_RESYNCHRONIZE_AUDIO_SECS - static unsigned int last_resync = 0, cur_sec=0; - if(cur_sec++ - last_resync >= FUNKEY_RESYNCHRONIZE_AUDIO_SECS){ - last_resync = cur_sec; - - /** Resync here (same as quitting ans relaunching loop for now) */ - printf("Resync sound now\n"); - emu_sound_stop(); - pemu_sound_start(); - } -#endif //FUNKEY_RESYNCHRONIZE_AUDIO_SECS - #ifdef BENCHMARK static int bench = 0, bench_fps = 0, bench_fps_s = 0, bfp = 0, bf[4]; if (++bench == 10) {