Qt ui: only stop repeat sounds (#2577)

pull/2564/head
Willem Melching 5 years ago committed by GitHub
parent 7d9fa1f85e
commit 1e48b2458e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/ui/qt/qt_sound.cc

@ -18,8 +18,11 @@ bool QtSound::play(AudibleAlert alert) {
void QtSound::stop() {
for (auto &kv : sounds) {
// Only stop repeating sounds
if (sound_map[kv.first].second != 0) {
kv.second.stop();
}
}
}
void QtSound::setVolume(int volume) {

Loading…
Cancel
Save