OpenBVE
OpenBVE copied to clipboard
Sounds Break when over 16 playing sources
Description
When attempting to play over 16 simulatneous sources at once (user sent route with a lot of TFOs), the sound system glitches out and either pops or goes completely silent. Under Options, Number Of Allowed Sounds is set to 16. Check what this option actually does, and whether it's broken. Windows 10 x64 current development build.
Secondary:
- Test the number available presented to us? https://stackoverflow.com/a/3203888/722627 How reliable is this?
- Also check whether this is an OpenTK bug.
- Is the option actually useful, or just dump it? (16 playing sounds is probably plenty)
https://github.com/leezer3/OpenBVE/commit/7e74a9f031538faef661bcf1f7f21df20b3d4f21 https://github.com/leezer3/OpenBVE/commit/58a1af85ee71b4036fb0a24c564037194352a6f9
Should fix this for the default Inverse model. Need to test the Linear model a little, but this isn't a user visible option, so lower priority.