Catch truncated files that raise EOFError, and only replace a critical chime with goat when that clip actually loaded.
Co-authored-by: Cursor <cursoragent@cursor.com>
Skip empty WAVs so playback never divides by zero, and keep packaged critical alerts if a theme file is malformed.
Co-authored-by: Cursor <cursoragent@cursor.com>
Skip missing or invalid wavs instead of crashing at startup so stock chimes still play on a fresh image.
Co-authored-by: Cursor <cursoragent@cursor.com>
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.