Skip to content

Wire preAlert sound to Distracted Driver volume control - #82

Draft
Filaipus wants to merge 1 commit into
firestar5683:StarPilotfrom
Filaipus:fix/pre-alert-volume
Draft

Wire preAlert sound to Distracted Driver volume control#82
Filaipus wants to merge 1 commit into
firestar5683:StarPilotfrom
Filaipus:fix/pre-alert-volume

Conversation

@Filaipus

@Filaipus Filaipus commented Aug 5, 2026

Copy link
Copy Markdown

Problem

The driver monitoring sound refactor introduced AudibleAlert.preAlert for the driverDistracted1 pre-warning (the black "Pay Attention" alert), but it was never added to soundd's volume_map. Unmapped sounds fall through to the 1.01 auto-volume sentinel, so with the Alert Volume Controller enabled, setting Distracted Driver volume to Muted silenced promptDistracted (the orange warning) while the pre-warning kept playing at auto volume.

Fix

Map AudibleAlert.preAlert to PromptDistractedVolume. preAlert is only used by driverDistracted1, so it follows the same volume control as the rest of the distraction alert chain (the red warningImmediate stays on its own Immediate Warning control).

The driver monitoring sound refactor introduced AudibleAlert.preAlert
for the driverDistracted1 pre-warning, but it was never added to the
alert volume controller's volume_map. Unmapped sounds fall through to
the 1.01 auto-volume sentinel, so setting Distracted Driver volume to
Muted silenced promptDistracted but the pre-warning kept playing at
auto volume.

preAlert is only used by driverDistracted1, so it follows
PromptDistractedVolume like the rest of the distraction alert chain.
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