From e3594a6839682e8157bd29af5da9c0a26ead764c Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 16 Feb 2007 13:55:01 +0000 Subject: Add support for using soundtrack from the Simon the Sorcerer 1 - Music Enhancement Project. svn-id: r25632 --- engines/agos/event.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/agos/event.cpp') diff --git a/engines/agos/event.cpp b/engines/agos/event.cpp index 37a72db995..8ffd6390f9 100644 --- a/engines/agos/event.cpp +++ b/engines/agos/event.cpp @@ -31,6 +31,8 @@ #include "gui/about.h" +#include "sound/audiocd.h" + namespace AGOS { void AGOSEngine::addTimeEvent(uint timeout, uint subroutine_id) { @@ -302,6 +304,8 @@ void AGOSEngine::delay(uint amount) { uint32 cur = start; uint this_delay, vga_period; + AudioCD.updateCD(); + if (_debugger->isAttached()) _debugger->onFrame(); @@ -415,6 +419,8 @@ void AGOSEngine::delay(uint amount) { if (_leftButton == 1) _leftButtonCount++; + AudioCD.updateCD(); + _system->updateScreen(); if (amount == 0) -- cgit v1.2.3