mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-09-30 19:33:42 +08:00
Revert "soundd: use setLoopCount(0) to stop repeating sound (#23076)"
This reverts commit 35885745f1.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user