Skip to content

feat(presenter): add mute and volume query - #60

Draft
Shinokawa wants to merge 1 commit into
mainfrom
agent/mute-volume-controls
Draft

feat(presenter): add mute and volume query#60
Shinokawa wants to merge 1 commit into
mainfrom
agent/mute-volume-controls

Conversation

@Shinokawa

Copy link
Copy Markdown
Member

Summary

Extracts the mute and volume-query portion of #53 into a focused change.

  • keeps the user-selected volume independently from the mute flag
  • reports the saved volume while muted
  • applies volume changes made while muted when unmuting
  • wires getVolume and setMuted through Rust, the C ABI, Android/iOS/macOS/Windows plugins, and Dart

Why

Hosts currently emulate mute with setVolume(0), which loses the previous level and cannot distinguish muted audio from a genuine zero-volume setting.

Validation

  • cargo fmt --all -- --check
  • cargo test -p erika -p erika_capi --lib — 391 + 26 tests passed
  • flutter test — 38 tests passed

Split from #53 so this low-risk state-model/API change can be reviewed independently.

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