From 2f8abb06c34fa6ed418682a05da9a944789e4429 Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 9 Jul 2014 12:46:49 +0200 Subject: [PATCH] CGE2: Implement Sound::open(), add stub for checkSaySwitch(). --- engines/cge2/cge2_main.cpp | 1 + engines/cge2/sound.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index a46767b4335..cda7b205314 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -807,6 +807,7 @@ void CGE2Engine::releasePocket(Sprite *spr) { } void CGE2Engine::checkSaySwitch() { + warning("STUB: CGE2Engine::checkSaySwitch()"); // if (SNDDrvInfo.DDEV == DEV_QUIET) // _sayVox = !(_sayCap = true); _commandHandlerTurbo->addCommand(kCmdSeq, 129, _sayVox, nullptr); diff --git a/engines/cge2/sound.cpp b/engines/cge2/sound.cpp index 51764b7b3e0..a7815b7d051 100644 --- a/engines/cge2/sound.cpp +++ b/engines/cge2/sound.cpp @@ -61,7 +61,7 @@ void Sound::close() { void Sound::open() { setRepeat(1); - warning("STUB: Sound::open()"); + _vm->checkSaySwitch(); play(_vm->_fx->load(99, 99)); }