libretro / bsnes-mercury

Fork of bsnes with various performance improvements.
GNU General Public License v3.0
47 stars 39 forks source link

Use audio batch callback only once per frame #93

Closed jdgleaver closed 2 years ago

jdgleaver commented 2 years ago

At present, the core uploads audio in packets of 64 samples - which means the audio batch callback is used multiple times per frame, unduly 'stressing' the frontend audio buffer and leading to poor AV synchronisation.

This PR ensures that the audio batch callback is only used once per frame.