Skip to content

feat: configurable controller sounds - #279

Merged
nextestudios merged 1 commit into
mainfrom
feat/controller-sounds
Sep 30, 2026
Merged

nextestudios merged 1 commit into
mainfrom
feat/controller-sounds

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Closes #276.

  • ControllerSounds (Core): maps controller actions to cues (Move/Confirm/Back/Select; analog scroll silent), per-cue minimum gap so holding the D-pad doesn't machine-gun, volume 0 = off (default), failures swallowed.
  • ToneSynth (Core): original sine cues with soft attack/decay rendered as in-memory WAV (no third-party audio; PS5 sounds are only a feel reference). Peak capped near 45% of full scale.
  • WindowsSoundPlayer: winmm PlaySound from memory, async; returns false without an audio device.
  • Only controller actions play: hooked on the InputRouter sink in InputHost; the keyboard path is untouched. No mapping or navigation change.
  • Menu → Configurações → Sons do controle (off/low/medium/high/max) stored in AppSettings.ControllerSoundVolume (optional field, no schema change).
  • Tests: unit (cues, throttle, off, failure safety, WAV validity/volume). Docs/CHANGELOG (both) and manual checks (not validated on hardware).

Touches input/audio/settings UI: full smoke on this branch before merge.

🤖 Generated with Claude Code

Short synthesized cues for move, confirm, back and mark; controller-only, throttled when a
direction is held, off by default, volume picker in Configurações.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nextestudios
nextestudios merged commit e740820 into main Sep 30, 2026
3 checks passed
@nextestudios
nextestudios deleted the feat/controller-sounds branch September 30, 2026 18:39
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.

feat: add configurable audio feedback for controller navigation

1 participant