stop sounds after going offroad
This commit is contained in:
parent
47497a2a96
commit
ffbd5e9f2d
|
@ -243,6 +243,7 @@ void ui_update(UIState *s) {
|
|||
s->status = STATUS_OFFROAD;
|
||||
s->active_app = cereal::UiLayoutState::App::HOME;
|
||||
s->scene.uilayout_sidebarcollapsed = false;
|
||||
s->sound->stop();
|
||||
} else if (s->started && s->status == STATUS_OFFROAD) {
|
||||
s->status = STATUS_DISENGAGED;
|
||||
s->started_frame = s->sm->frame;
|
||||
|
|
Loading…
Reference in a new issue