Skip to content

Commit

Permalink
cellAudio: use wait_for_accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Jun 5, 2023
1 parent 43b94f2 commit edd4b49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpcs3/Emu/Cell/Modules/cellAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit edd4b49

Please sign in to comment.