libretro / snes9x2010

Snes9x 2010. Port of Snes9x 1.52+ to Libretro (previously called SNES9x Next). Rewritten in C and several optimizations and speedhacks.
Other
98 stars 70 forks source link

Use audio batch callback only once per frame #158

Closed jdgleaver closed 2 years ago

jdgleaver commented 2 years ago

At present, the core uploads samples in batches of ~64, which means the audio batch callback is used many (~9) times per frame. This 'overstresses' the frontend audio buffer and leads to bad AV synchronisation.

This PR fixes the issue by ensuring that the audio batch callback is used to send all available samples only once per frame.