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

This reverts commit 27bcef8a3846acc7664a26e30a1284abb9fd8752.

old-commit-hash: d28622f8d3
commatwo_master
Adeeb Shihadeh 4 years ago
parent f2d887ea14
commit e3e9a6402b
  1. 2
      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();
}
}

Loading…
Cancel
Save