From d28622f8d34dbcf242e2ba0ed2f5d1e831775f48 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 11 Dec 2021 14:32:38 -0800 Subject: [PATCH] Revert "soundd: use setLoopCount(0) to stop repeating sound (#23076)" This reverts commit 35885745f1b4fcaafee2ed7276de491e6df018d2. --- selfdrive/ui/soundd/sound.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/soundd/sound.cc b/selfdrive/ui/soundd/sound.cc index 4e88f41b1c..f303aa92bf 100644 --- a/selfdrive/ui/soundd/sound.cc +++ b/selfdrive/ui/soundd/sound.cc @@ -67,7 +67,7 @@ void Sound::setAlert(const Alert &alert) { for (auto &[s, loops] : sounds) { // Only stop repeating sounds if (s->loopsRemaining() > 1 || s->loopsRemaining() == QSoundEffect::Infinite) { - s->setLoopCount(0); + s->stop(); } }