Skip to content

Fix crash when turning volume past 100 - #8

Merged
sethmills21 merged 1 commit into
mainfrom
fix/volume-crash
Oct 16, 2026
Merged

sethmills21 merged 1 commit into
mainfrom
fix/volume-crash

Conversation

@sethmills21

Copy link
Copy Markdown
Owner

Pressing + past 100 crashed sonic: mpv allows up to 150, and the 10-step volume meter tried to draw −1 empty steps. The crash also left mpv playing and the terminal without a cursor.

  • Meter fills at 100 and stays full to 150; the number keeps counting
  • Any uncaught error now kills mpv, restores the terminal, and prints a one-line message with the issues link (SONIC_DEBUG=1 adds the stack)

Tested: on the Mac Studio, played a mix and pressed + 16 times to 150, then - 20 times to 0. No crash, and the meter and number were right at both ends.

🤖 Generated with Claude Code

…on any crash

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sethmills21
sethmills21 merged commit 8e2082a into main Oct 16, 2026
1 check passed
@sethmills21
sethmills21 deleted the fix/volume-crash branch October 16, 2026 16:02
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.

1 participant