aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2006-10-21 12:03:43 +0000
committerMax Horn2006-10-21 12:03:43 +0000
commitf95f5ed13356233b1f1976c6a793b6e104373a4d (patch)
tree299fd488a8742bcc0245ad3ae3c5e112f6742645 /base
parent772affc7dbb75faad85b69c00b381d12340f809d (diff)
downloadscummvm-rg350-f95f5ed13356233b1f1976c6a793b6e104373a4d.tar.gz
scummvm-rg350-f95f5ed13356233b1f1976c6a793b6e104373a4d.tar.bz2
scummvm-rg350-f95f5ed13356233b1f1976c6a793b6e104373a4d.zip
Added OSystem::getTimerManager and OSystem::getMixer methods (wip)
svn-id: r24405
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index ced240973f..6c97e4243b 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -44,6 +44,7 @@
#include "gui/newgui.h"
#include "gui/message.h"
#include "sound/mididrv.h"
+#include "sound/mixer.h"
#if defined(_WIN32_WCE)
#include "backends/platform/wince/CELauncherDialog.h"
@@ -225,6 +226,11 @@ static int runGame(const Plugin *plugin, OSystem &system, const Common::String &
return result;
}
+
+// FIXME: Temporary hack, to be removed soon
+Audio::Mixer *g_mixer = 0;
+
+
extern "C" int scummvm_main(int argc, char *argv[]) {
Common::String specialDebug;
Common::String command;
@@ -284,6 +290,8 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
// Create the timer services
Common::g_timer = new DefaultTimerManager(&system);
+
+ g_mixer = new Audio::Mixer();
// Set initial window caption
system.setWindowCaption(gScummVMFullVersion);
@@ -328,6 +336,9 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
launcherDialog(system);
}
+ // Deinit the mixer
+ delete g_mixer;
+
// Deinit the timer
delete Common::g_timer;