diff options
| author | Max Horn | 2006-10-21 12:03:43 +0000 |
|---|---|---|
| committer | Max Horn | 2006-10-21 12:03:43 +0000 |
| commit | f95f5ed13356233b1f1976c6a793b6e104373a4d (patch) | |
| tree | 299fd488a8742bcc0245ad3ae3c5e112f6742645 /base | |
| parent | 772affc7dbb75faad85b69c00b381d12340f809d (diff) | |
| download | scummvm-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.cpp | 11 |
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; |
