From: Toni Wilen Date: Sun, 11 Sep 2016 15:44:54 +0000 (+0300) Subject: Audio pull mode check. X-Git-Tag: 3400~96 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=d119f0a74bbf3a070659e00bfe3b87cbb9ecbb28;p=francis%2Fwinuae.git Audio pull mode check. --- 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);