Skip to content

Settings: Add separate audioMuted setting to preserve volume on mute#14227

Merged
DonLakeFlyer merged 1 commit intomavlink:masterfrom
DonLakeFlyer:feature/audio-mute-setting
Mar 27, 2026
Merged

Settings: Add separate audioMuted setting to preserve volume on mute#14227
DonLakeFlyer merged 1 commit intomavlink:masterfrom
DonLakeFlyer:feature/audio-mute-setting

Conversation

@DonLakeFlyer
Copy link
Copy Markdown
Collaborator

Add a dedicated audioMuted bool setting so muting no longer zeroes out the volume slider. Previously, muting set volume to 0 and unmuting restored to 100, losing the user's preferred volume level.

Changes

  • App.SettingsGroup.json / AppSettings.h/.cc: New audioMuted bool setting (default: false)
  • AudioOutput.h/.cc: init() accepts both volume and muted Facts; _setVolume() respects mute state; added _volumeSetting() / _mutedSetting() accessors for clarity
  • General.SettingsUI.json: Checkbox now toggles audioMuted instead of zeroing volume; unmuting with volume at 0 resets to 75%; added _appSettings binding for readability
  • QGCApplication.cc: Pass both Facts to AudioOutput::init()

Behavior

  • Muting stops current speech and prevents new speech
  • Unmuting restores the previously set volume
  • If volume was manually set to 0 before muting, unmuting sets it to 75%
  • Test button is disabled when muted

Copilot AI review requested due to automatic review settings March 27, 2026 15:47

This comment was marked as resolved.

Add a dedicated audioMuted bool setting so muting no longer zeroes out
the volume slider. The checkbox on the audio volume control now toggles
the mute setting independently, preserving the user's chosen volume
level when unmuting. If the user unmutes while volume is at 0, it
resets to 75%.

- Add audioMuted to App.SettingsGroup.json, AppSettings.h/.cc
- Update AudioOutput to accept and respect the muted Fact
- Rename _volume() to _volumeSetting(), add _mutedSetting() accessors
- Wire enableCheckbox in General.SettingsUI.json to audioMuted
- Add _appSettings binding to General.SettingsUI.json for readability
@DonLakeFlyer DonLakeFlyer force-pushed the feature/audio-mute-setting branch from 4138564 to 5f51ccd Compare March 27, 2026 15:57
@github-actions github-actions bot added the QML label Mar 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Build Results

Platform Status

Platform Status Details
Linux Passed View
Windows Passed View
MacOS Passed View
Android Passed View

All builds passed.

Pre-commit

Check Status Details
pre-commit Failed (non-blocking) View

Pre-commit hooks: 4 passed, 32 failed, 7 skipped.

Test Results

linux-sanitizers: 67 passed, 0 skipped
linux_gcc_64: 67 passed, 0 skipped
Total: 134 passed, 0 skipped

Artifact Sizes

Artifact Size
QGroundControl 247.51 MB
QGroundControl 337.71 MB
QGroundControl-aarch64 176.93 MB
QGroundControl-installer-AMD64 134.75 MB
QGroundControl-installer-AMD64-ARM64 77.37 MB
QGroundControl-installer-ARM64 106.10 MB
QGroundControl-mac 188.42 MB
QGroundControl-windows 188.46 MB
QGroundControl-x86_64 163.15 MB
No baseline available for comparison---
Updated: 2026-03-27 16:58:29 UTC • Triggered by: Android

@DonLakeFlyer DonLakeFlyer merged commit 34c11f4 into mavlink:master Mar 27, 2026
23 of 24 checks passed
@DonLakeFlyer DonLakeFlyer deleted the feature/audio-mute-setting branch March 27, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants