[Scummvm-git-logs] scummvm master -> de695e7e7fffca0f594af546594810afbd5b0ef1

rvanlaar noreply at scummvm.org
Wed Mar 16 09:11:25 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
de695e7e7f DIRECTOR: pause music when display exit modal


Commit: de695e7e7fffca0f594af546594810afbd5b0ef1
    https://github.com/scummvm/scummvm/commit/de695e7e7fffca0f594af546594810afbd5b0ef1
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-03-16T10:10:50+01:00

Commit Message:
DIRECTOR: pause music when display exit modal

Changed paths:
    engines/director/events.cpp


diff --git a/engines/director/events.cpp b/engines/director/events.cpp
index 2cd0b52057f..d07f906f658 100644
--- a/engines/director/events.cpp
+++ b/engines/director/events.cpp
@@ -22,6 +22,8 @@
 #include "common/system.h"
 #include "common/translation.h"
 
+#include "audio/mixer.h"
+
 #include "gui/message.h"
 
 #include "graphics/macgui/macwindowmanager.h"
@@ -89,10 +91,12 @@ void DirectorEngine::processEventQUIT() {
 		GUI::MessageDialog dialog(message, _("OK"), _("Cancel"));
 
 		g_system->getEventManager()->resetQuit(); // Clear the quit event
+		_mixer->pauseAll(true);
 
 		int result = dialog.runModal();
 		if (result == GUI::kMessageOK)
 			_stage->getCurrentMovie()->getScore()->_playState = kPlayStopped;
+		_mixer->pauseAll(false);
 	} else {
 		_stage->getCurrentMovie()->getScore()->_playState = kPlayStopped;
 	}




More information about the Scummvm-git-logs mailing list