mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-05 08:11:39 +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)
|
if (occupancy < retro_audio_buff_underrun_threshold)
|
||||||
audio_status |= AUDIO_STATUS_BUFFER_UNDERRUN;
|
audio_status |= AUDIO_STATUS_BUFFER_UNDERRUN;
|
||||||
else
|
else if (occupancy > (retro_audio_buff_underrun_threshold << 2))
|
||||||
audio_status &= ~AUDIO_STATUS_BUFFER_UNDERRUN;
|
audio_status &= ~AUDIO_STATUS_BUFFER_UNDERRUN;
|
||||||
|
|
||||||
retro_audio_buff_occupancy = occupancy;
|
retro_audio_buff_occupancy = occupancy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user