mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Add the early return to audio_driver_sample_batch
This commit is contained in:
parent
fbd4900031
commit
3297900543
@ -728,6 +728,9 @@ size_t audio_driver_sample_batch(const int16_t *data, size_t frames)
|
||||
if (frames > (AUDIO_CHUNK_SIZE_NONBLOCKING >> 1))
|
||||
frames = AUDIO_CHUNK_SIZE_NONBLOCKING >> 1;
|
||||
|
||||
if (audio_suspended)
|
||||
return frames;
|
||||
|
||||
audio_driver_flush(data, frames << 1);
|
||||
|
||||
return frames;
|
||||
|
Loading…
Reference in New Issue
Block a user