• Thomas Guillem's avatar
    coreaudio: disable resampling when latency is too high · bab4c826
    Thomas Guillem authored
    On iOS, the render callback is called by default with 1024 frames, and 4096
    when the screen is OFF. 4096 frames @ 44.1Hhz is around 88ms, which is higher
    than AOUT_MAX_PTS_DELAY (60ms). This caused the resampler to be started/stopped
    very often when the screen was OFF due to the imprecision of 88ms from the
    TimeGet callback.
    
    To fix this issue, this commit disable the TimeGet callback when the latency is
    too high.
    
    This will also save some CPU time by disabling any synchronisation when the
    screen is OFF. From my tests, high latency is only triggered by switching OFF
    the display.
    
    Fixes #18939
    
    (cherry picked from commit f18fef32)
    Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
    bab4c826
Name
Last commit
Last update
..
Makefile.am Loading commit data...
TPCircularBuffer.c Loading commit data...
TPCircularBuffer.h Loading commit data...
adummy.c Loading commit data...
alsa.c Loading commit data...
amem.c Loading commit data...
audiotrack.c Loading commit data...
audiounit_ios.m Loading commit data...
auhal.c Loading commit data...
coreaudio_common.c Loading commit data...
coreaudio_common.h Loading commit data...
directsound.c Loading commit data...
file.c Loading commit data...
jack.c Loading commit data...
kai.c Loading commit data...
mmdevice.c Loading commit data...
mmdevice.h Loading commit data...
opensles_android.c Loading commit data...
oss.c Loading commit data...
pulse.c Loading commit data...
sndio.c Loading commit data...
tizen_audio.c Loading commit data...
vlcpulse.c Loading commit data...
vlcpulse.h Loading commit data...
volume.h Loading commit data...
wasapi.c Loading commit data...
waveout.c Loading commit data...
windows_audio_common.h Loading commit data...
winstore.c Loading commit data...