mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
LIBRETRO: add treshold to remove AUDIO_STATUS_BUFFER_UNDERRUN bit
This commit is contained in:
parent
e1abf6d691
commit
735cbbb34f
@ -195,7 +195,7 @@ static void retro_audio_buff_status_cb(bool active, unsigned occupancy, bool und
|
||||
|
||||
if (occupancy < retro_audio_buff_underrun_threshold)
|
||||
audio_status |= AUDIO_STATUS_BUFFER_UNDERRUN;
|
||||
else
|
||||
else if (occupancy > (retro_audio_buff_underrun_threshold << 2))
|
||||
audio_status &= ~AUDIO_STATUS_BUFFER_UNDERRUN;
|
||||
|
||||
retro_audio_buff_occupancy = occupancy;
|
||||
|
Loading…
x
Reference in New Issue
Block a user