From 1f6af4ded2b505cfbd3d009fe7c220914e029d4e Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 19 Jun 2020 14:53:55 -0700 Subject: [PATCH] fix alert sounds looping old-commit-hash: 78b428e53441da339f8d13b78bfcf1f5ca192d6f --- selfdrive/ui/sound.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/selfdrive/ui/sound.cc b/selfdrive/ui/sound.cc index 1b02f1432..3eee6f831 100644 --- a/selfdrive/ui/sound.cc +++ b/selfdrive/ui/sound.cc @@ -62,14 +62,6 @@ bool Sound::init(int volume) { } AudibleAlert Sound::currentPlaying() { - if (currentSound_ != AudibleAlert::NONE) { - auto playItf = player_.at(currentSound_)->playItf; - SLuint32 state; - if (SL_RESULT_SUCCESS == (*playItf)->GetPlayState(playItf, &state) && - (state == SL_PLAYSTATE_STOPPED || state == SL_PLAYSTATE_PAUSED)) { - currentSound_ = AudibleAlert::NONE; - } - } return currentSound_; }