mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-04-04 00:52:49 +02:00
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:
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user