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).

This commit is contained in:
root
2021-11-06 01:36:04 +01:00
parent 92b80c5bb2
commit 47e321d0f0
2 changed files with 1 additions and 14 deletions

2
.gitmodules vendored
View File

@@ -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

View File

@@ -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) {