This is kind of niche, but I think I understand the mechanics of the issue, so I wanted to report it.
The IssueWhen Starsector loses focus then regains it, sound no longer works.
Steps to Reproduce- Launch Starsector, open a session
- Click off the game
- Tab back to the game
No audio in game.
The Culprit1. I have 2 monitors and I'm currently using one of monitor's headphone jack as the main audio output.
2. Because of the way that Starsector reinitializes the monitor system (at least on Linux) it causes the monitor to reset for a second which also disconnects it as an audio device for a moment.
3. Because the audio device is probably missing when Starsector looks for it, it either grabs some other random device that isn't hooked up, or none at all.
Possible Workarounds- Use a windowed fullscreen mode
- Use a less aggressive screen grabbing mode in general that doesn't reset the monitors (it also makes a mess of my windows)
- Attempt to get back the same audio device a few seconds after getting focus back
- Allow sound device selection from the settings screen
RelatedMay be released to this old issue:
https://fractalsoftworks.com/forum/index.php?topic=16503.msg262145#msg262145SpecsOS: Solus x86_64
Kernel: 6.4.8-247.current
Resolution: 2560x1440, 3840x2160
DE: Budgie 10.7.2
WM: Mutter(Budgie)
CPU: AMD Ryzen 9 5950X (32) @ 3.400GHz
GPU: NVIDIA GeForce RTX 3080 Ti
Memory: 11554MiB / 128736MiB