libretro / libretro-uae

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

Flush all remaining audio samples at the end of each frame #501

Closed realnc closed 2 years ago

realnc commented 2 years ago

Currently, the core submits a short and then a long audio buffer each other frame. This alternating pattern of too few and too many audio samples messes up frame pacing and produces audio dropouts when using a low audio latency setting in the frontend.

Fix this by flushing all remaining audio samples at the end of each frame rather than postponing them until the next frame.

Reviewers

@sonninnos