libretro / libretro-uae

PUAE libretro
GNU General Public License v2.0
112 stars 60 forks source link

Don't upload audio to frontend multiple times per frame #499

Closed realnc closed 2 years ago

realnc commented 2 years ago

It increases the chance of audio dropouts. Also, it's better to submit audio to the fronend after video, as the audio upload can block for a long time and unnecessarily delay video frame presentation.

Fix this by accumulating all audio samples into a single output buffer which is submitted at the end of each frame.

Reviewers

@sonninnos @jdgleaver

sonninnos commented 2 years ago

Thanks! Works nicely here.