From edd4b49fe9d431286dbb21db75dba12e45ef17a5 Mon Sep 17 00:00:00 2001 From: Eladash Date: Mon, 5 Jun 2023 13:15:16 +0300 Subject: [PATCH] cellAudio: use wait_for_accurate --- rpcs3/Emu/Cell/Modules/cellAudio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellAudio.cpp b/rpcs3/Emu/Cell/Modules/cellAudio.cpp index dfc3d6ea244f..f455fb58b9e9 100644 --- a/rpcs3/Emu/Cell/Modules/cellAudio.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAudio.cpp @@ -777,7 +777,7 @@ void cell_audio_thread::operator()() const s64 audio_period_alignment_delta = (timestamp - m_start_time) % cfg.audio_block_period; if (audio_period_alignment_delta > cfg.period_comparison_margin) { - thread_ctrl::wait_for(audio_period_alignment_delta - cfg.period_comparison_margin); + thread_ctrl::wait_for_accurate(audio_period_alignment_delta - cfg.period_comparison_margin, false); } if (cfg.buffering_enabled) @@ -831,7 +831,7 @@ void cell_audio_thread::operator()() if (time_left > cfg.period_comparison_margin) { - thread_ctrl::wait_for(get_thread_wait_delay(time_left)); + thread_ctrl::wait_for_accurate(get_thread_wait_delay(time_left), false); continue; } } @@ -904,7 +904,7 @@ void cell_audio_thread::operator()() const s64 time_left = m_dynamic_period - time_since_last_period; if (time_left > cfg.period_comparison_margin) { - thread_ctrl::wait_for(get_thread_wait_delay(time_left)); + thread_ctrl::wait_for_accurate(get_thread_wait_delay(time_left), false); continue; }