OpenCanopy: Fix timeout sound in audio assistant

This commit is contained in:
vit9696 2021-01-02 16:02:39 +03:00
parent b8843e6dcd
commit c23174e701

View File

@ -1273,6 +1273,13 @@ GuiDrawLoop (
//
if (TimeOutSeconds > 0
&& GetTimeInNanoSecond (NewLastTsc - LoopStartTsc) >= TimeOutSeconds * 1000000000ULL) {
if (DrawContext->GuiContext->PickerContext->PickerAudioAssist) {
DrawContext->GuiContext->PickerContext->PlayAudioFile (
DrawContext->GuiContext->PickerContext,
OcVoiceOverAudioFileTimeout,
FALSE
);
}
DrawContext->GuiContext->ReadyToBoot = TRUE;
break;
}