From 2cf5859404fe91e19c2d18d57c1955d314c5da06 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Thu, 9 Mar 2006 22:37:19 +0000 Subject: oo'ified sound code and added basic support for OS adlib music. svn-id: r21186 --- engines/cine/main_loop.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'engines/cine/main_loop.cpp') diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp index ef7d186a20..5197ea5362 100644 --- a/engines/cine/main_loop.cpp +++ b/engines/cine/main_loop.cpp @@ -28,6 +28,7 @@ #include "cine/main_loop.h" #include "cine/object.h" +#include "cine/sfx_player.h" #include "cine/various.h" namespace Cine { @@ -142,17 +143,15 @@ void mainLoop(int bootScriptIdx) { strcpy(currentCtName, ""); strcpy(currentPartName, ""); - stopSample(); + g_sfxPlayer->stop(); do { mainLoopSub3(); di = executePlayerInput(); - if (var18 != 0) { - if (var18 >= 100 || var19) { - stopSample(); - } - } +// if (g_sfxPlayer->_fadeOutCounter != 0 && g_sfxPlayer->_fadeOutCounter < 100) { +// g_sfxPlayer->stop(); +// } processSeqList(); executeList1(); @@ -232,7 +231,7 @@ void mainLoop(int bootScriptIdx) { } while (!exitEngine && !quitFlag && var21 != 7); hideMouse(); - stopSample(); + g_sfxPlayer->stop(); closeEngine3(); unloadAllMasks(); freePrcLinkedList(); -- cgit v1.2.3