JGRennison / OpenTTD-patches

OpenTTD - http://www.openttd.org/ - with additional patches
Other
545 stars 126 forks source link

[Bug]: Stuttering SFX audio. #687

Closed WildBraixen closed 2 months ago

WildBraixen commented 2 months ago

Version of OpenTTD

v0.58.3, Windows 10

Expected result

SFX audio to be smooth.

Actual result

All SFX audio ends up stuttering. The only fix is to not play with SFX at all.

Unsure what went wrong; normal OpenTTD on Steam runs SFX smoothly (Music runs normally. No stuttering like SFX audio)

Steps to reproduce

Run game as normal. SFX audio starts stuttering in the menu background as well as in game.

WildBraixen commented 2 months ago

At some point 0.58.2 sound effect started shuttering leaving an annoying choppy echo effect.

After some tinkering I found out that openttd.exe -s win32:samples=2046 was too low. Increasing it to a number 4086 resolved the issue.