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

Sounds: Don't pause new sounds when paused #13940

Merged
merged 1 commit into from Oct 28, 2023

Conversation

Desour
Copy link
Member

@Desour Desour commented Oct 28, 2023

Quick fix for #13931.

Rationale:
AFAIK, sounds are usually not played while paused (apart from the pause menu sounds), because mods get no callbacks anyway.
So, to get a playSound command to the sound manager while it's paused, you'd probably need some kind of race condition where the game is paused while the server's sound is passed to the client. This should happen very seldom in singleplayer (note that pause is a singleplayer-only feature). And if it happens, it will likely be a short sound, because those are more common than long ones.

To do

This PR is a Ready for Review.

How to test

See #13931.

@Desour Desour added this to the 5.8.0 milestone Oct 28, 2023
@Desour Desour merged commit b2aa5d9 into minetest:master Oct 28, 2023
13 checks passed
@Desour Desour deleted the sound_no_pause_new branch October 28, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants