mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
@@ -18,7 +18,10 @@ bool QtSound::play(AudibleAlert alert) {
|
||||
|
||||
void QtSound::stop() {
|
||||
for (auto &kv : sounds) {
|
||||
kv.second.stop();
|
||||
// Only stop repeating sounds
|
||||
if (sound_map[kv.first].second != 0) {
|
||||
kv.second.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user