Add Audio menu with volume sliders to Forge context menu#9742
Merged
tool4ever merged 2 commits intoCard-Forge:masterfrom Feb 14, 2026
Merged
Add Audio menu with volume sliders to Forge context menu#9742tool4ever merged 2 commits intoCard-Forge:masterfrom
tool4ever merged 2 commits intoCard-Forge:masterfrom
Conversation
Add an "Audio" submenu to the Forge popup menu with draggable volume sliders for sound effects and music. Wire up the audio backend to actually respect volume settings — AudioClip and AltSoundSystem now apply volume via MASTER_GAIN, and AudioMusic scales PCM samples via a custom JavaSoundAudioDevice. Sliders sync with the enable/disable preferences so volume=0 disables audio. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Closed
The audio slider changes on this branch make the in-game Sound Effects toggle redundant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@MostCromulent @tool4ever Everything is fine, but there is a problem. When you minimize the game and then reopen it, the volume level returns to what it was before, even though the slider is where I set it. If you move it slightly, the volume starts to match the slider. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an "Audio" submenu to the Forge popup menu (top-left hamburger) with draggable volume sliders for sound effects and music, and fixes the desktop audio backend to actually respect volume settings.
Addresses #9736 — audio can now be quickly adjusted or muted from the Forge context menu without navigating to preferences.
UI_VOL_SOUNDS/UI_VOL_MUSICpreferencesAudioClipandAltSoundSystemto apply volume viaMASTER_GAIN(previously ignored the volume parameter)AudioMusic.setVolume()which was a//todono-op — now scales PCM samples via a customJavaSoundAudioDevice🤖 Generated with Claude Code