Qt ui: only stop repeat sounds (#2577)

x-archive-community-master-merge
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,9 +18,12 @@ bool QtSound::play(AudibleAlert alert) {
void QtSound::stop() { void QtSound::stop() {
for (auto &kv : sounds) { for (auto &kv : sounds) {
// Only stop repeating sounds
if (sound_map[kv.first].second != 0) {
kv.second.stop(); kv.second.stop();
} }
} }
}
void QtSound::setVolume(int volume) { void QtSound::setVolume(int volume) {
// TODO: implement this // TODO: implement this

Loading…
Cancel
Save