Revert "soundd: use setLoopCount(0) to stop repeating sound (#23076)"

This reverts commit 35885745f1.
pull/23198/head
Adeeb Shihadeh 3 years ago
parent 8122a0af4c
commit d28622f8d3
  1. 2
      selfdrive/ui/soundd/sound.cc

@ -67,7 +67,7 @@ void Sound::setAlert(const Alert &alert) {
for (auto &[s, loops] : sounds) { for (auto &[s, loops] : sounds) {
// Only stop repeating sounds // Only stop repeating sounds
if (s->loopsRemaining() > 1 || s->loopsRemaining() == QSoundEffect::Infinite) { if (s->loopsRemaining() > 1 || s->loopsRemaining() == QSoundEffect::Infinite) {
s->setLoopCount(0); s->stop();
} }
} }

Loading…
Cancel
Save