soundd: update volume while playing alert (#37789)

lways
This commit is contained in:
Shane Smiskol
2026-04-08 23:56:24 -07:00
committed by GitHub
parent 58090f5f7e
commit b5576de97e
+2 -1
View File
@@ -155,7 +155,8 @@ class Soundd:
while True:
sm.update(0)
if sm.updated['soundPressure'] and self.current_alert == AudibleAlert.none: # only update volume filter when not playing alert
# Always update volume, even when alert is playing
if sm.updated['soundPressure']:
self.spl_filter_weighted.update(sm["soundPressure"].soundPressureWeightedDb)
self.current_volume = self.calculate_volume(float(self.spl_filter_weighted.x))