mirror of
https://github.com/mrehkopf/sd2snes.git
synced 2026-01-11 14:29:25 +01:00
When the MSU1 audio sample rate was locked at exactly 44100Hz in 829953b, some A/V desync was introduced in videos played by the example video player.
Audio sample rate had previously been set to a slightly higher rate to match the slightly higher vertical refresh rate of the SNES.
This commit repeats a video frame occasionally, based on a phase accumulator, to keep video playback from running ahead of audio.