Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound stays turned off #393

Open
hajo4 opened this issue Oct 6, 2024 · 2 comments
Open

Sound stays turned off #393

hajo4 opened this issue Oct 6, 2024 · 2 comments

Comments

@hajo4
Copy link

hajo4 commented Oct 6, 2024

I recently got a speaker that is connected via USB,
and has a switch to turn it on/off.

Pysol, (among some other programs) turn their sound off when this speaker is off,
but dont turn sound on again when speaker gets on again.
Ie. those programs need to be restarted to play sounds again.
I guess they only check once at startup if they can play sounds...

Some other programs (like firefox) have no such problems.

@joeraz
Copy link
Collaborator

joeraz commented Oct 6, 2024

From a technical perspective, this is because PySol needs to detect which sound component is installed, if any (i.e. pysol-sound-server or pygame), and adjust the audio settings appropriately. It doesn't usually expect the audio component to be switched out while running (as you can't delete files in use).

@hajo4
Copy link
Author

hajo4 commented Oct 6, 2024

I suggest to re-check the sound component at certain points while the program is running,
eg. when starting a game, or when un/pausing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants