pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
767 stars 120 forks source link

Add a delta of 2 ms to test_music_pause__unpause() #2898

Closed MyreMylar closed 1 month ago

MyreMylar commented 1 month ago

The pause/unpause functionality is just not accurate enough for true equality and occasionally fails in unit testing with 1ms difference.

Realistically nobody can hear a 2ms position difference in a sound.

Recent example