Skip to content

Fix music volume resetting after window minimize/restore#9763

Merged
tool4ever merged 1 commit intoCard-Forge:masterfrom
MostCromulent:NetworkPlay/audiobug
Feb 16, 2026
Merged

Fix music volume resetting after window minimize/restore#9763
tool4ever merged 1 commit intoCard-Forge:masterfrom
MostCromulent:NetworkPlay/audiobug

Conversation

@MostCromulent
Copy link
Contributor

Summary

  • Fixes music volume reverting to default when the game window is minimized and restored, even though the slider shows the correct position
  • The pause/resume cycle creates a new VolumeAudioDevice with default volume (1.0), discarding the user's setting. Adding refreshVolume() after updatePlayPause() in SoundSystem.resume() reapplies the saved preference.

Bug report: #9742 (comment)

Test plan

  • Set music volume to a low level via the Audio slider
  • Minimize and restore the game window
  • Verify volume remains at the user-set level without needing to touch the slider

🤖 Generated with Claude Code

Restore user-set volume when resuming music playback. The pause/resume
cycle creates a new VolumeAudioDevice with default volume, losing the
user's slider setting until they interact with the slider again.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tool4ever tool4ever merged commit 4033917 into Card-Forge:master Feb 16, 2026
2 checks passed
@MostCromulent MostCromulent deleted the NetworkPlay/audiobug branch February 17, 2026 00:48
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.

3 participants