X Tutup
Skip to content

Prevent invoking SDL_PauseAudioDevice when it's already paused#6156

Merged
sturnclaw merged 1 commit intopioneerspacesim:masterfrom
mfep:6155-fix-sound-pause
Jun 12, 2025
Merged

Prevent invoking SDL_PauseAudioDevice when it's already paused#6156
sturnclaw merged 1 commit intopioneerspacesim:masterfrom
mfep:6155-fix-sound-pause

Conversation

@mfep
Copy link
Contributor

@mfep mfep commented Jun 12, 2025

This fixes #6155

The way the Sound menu is implemented is that it will continuously hammer the Sound::Pause function, which apparently causes audio artifacts on my system. Why the Flatpak is not affected is not clear to me, one possibility is that the underlying SDL version is different.

This patch makes sure that the SDL_PauseAudioDevice is only called when it would actually modify the pause state.

Copy link
Member

@sturnclaw sturnclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We've had a few scattered reports of performance issues on the sound page, but never anything I could actually reproduce to figure out the problem. I appreciate you taking the time to dig into this one!

@sturnclaw sturnclaw merged commit f701b60 into pioneerspacesim:master Jun 12, 2025
4 checks passed
@mfep mfep deleted the 6155-fix-sound-pause branch June 13, 2025 21:09
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

Successfully merging this pull request may close these issues.

Music stutters in Sound Menu in Fedora 42 build

2 participants

X Tutup