mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 18:13:57 +08:00
soundd: use setLoopCount(0) to stop repeating sound (#23076)
* use setLoopCount(0) to stop sound * print default backend name
This commit is contained in:
@@ -65,7 +65,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->stop();
|
||||
s->setLoopCount(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user