mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Don't adjust audio for VRR. Silence log message about it.
This commit is contained in:
parent
bd4d462170
commit
e48b9011bf
@ -888,7 +888,7 @@ void audio_driver_monitor_adjust_system_rates(void)
|
||||
timing_skew = fabs(1.0f - info->fps / video_refresh_rate);
|
||||
audio_driver_input = info->sample_rate;
|
||||
|
||||
if (timing_skew <= max_timing_skew)
|
||||
if (timing_skew <= max_timing_skew && !settings->bools.vrr_runloop_enable)
|
||||
audio_driver_input *= (video_refresh_rate / info->fps);
|
||||
|
||||
RARCH_LOG("[Audio]: Set audio input rate to: %.2f Hz.\n",
|
||||
|
@ -1456,15 +1456,18 @@ void video_driver_monitor_adjust_system_rates(void)
|
||||
timing_skew = fabs(
|
||||
1.0f - info->fps / timing_skew_hz);
|
||||
|
||||
/* We don't want to adjust pitch too much. If we have extreme cases,
|
||||
* just don't readjust at all. */
|
||||
if (timing_skew <= settings->floats.audio_max_timing_skew)
|
||||
return;
|
||||
if (!settings->bools.vrr_runloop_enable)
|
||||
{
|
||||
/* We don't want to adjust pitch too much. If we have extreme cases,
|
||||
* just don't readjust at all. */
|
||||
if (timing_skew <= settings->floats.audio_max_timing_skew)
|
||||
return;
|
||||
|
||||
RARCH_LOG("[Video]: Timings deviate too much. Will not adjust."
|
||||
" (Display = %.2f Hz, Game = %.2f Hz)\n",
|
||||
video_refresh_rate,
|
||||
(float)info->fps);
|
||||
RARCH_LOG("[Video]: Timings deviate too much. Will not adjust."
|
||||
" (Display = %.2f Hz, Game = %.2f Hz)\n",
|
||||
video_refresh_rate,
|
||||
(float)info->fps);
|
||||
}
|
||||
|
||||
if (info->fps <= timing_skew_hz)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user