From d119f0a74bbf3a070659e00bfe3b87cbb9ecbb28 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 11 Sep 2016 18:44:54 +0300 Subject: [PATCH] Audio pull mode check. --- custom.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom.cpp b/custom.cpp index 308bf77b..98fdd1da 100644 --- a/custom.cpp +++ b/custom.cpp @@ -7225,6 +7225,8 @@ static bool framewait (void) show_screen (2); } + maybe_process_pull_audio(); + int legacy_avg = mavg (&ma_legacy, t, MAVG_VSYNC_SIZE); if (t > legacy_avg) legacy_avg = t; @@ -8338,6 +8340,7 @@ static void hsync_handler_post (bool onvsync) if (vpos == 0) nextwaitvpos = maxvpos_display * 1 / 4; if (audio_is_pull() > 0 && !currprefs.turbo_emulation) { + maybe_process_pull_audio(); frame_time_t rpt = read_processor_time(); while (audio_pull_buffer() > 1 && (!isvsync() || (!vsync_isdone() && (int)vsyncmintime - (int)(rpt + vsynctimebase / 10) > 0 && (int)vsyncmintime - (int)rpt < vsynctimebase))) { cpu_sleep_millis(1); -- 2.47.3