diff options
| author | Max Horn | 2007-06-30 21:20:47 +0000 |
|---|---|---|
| committer | Max Horn | 2007-06-30 21:20:47 +0000 |
| commit | dc91dcde00db746a934fe3ebf6094bee9145347b (patch) | |
| tree | 435fefdc32cd4a28c5a0d9cc9774a4edc38b6ef4 /backends/platform/ps2/systemps2.cpp | |
| parent | 93b1a53c72f1c181439b7dcd43c94d911a2e30ee (diff) | |
| download | scummvm-rg350-dc91dcde00db746a934fe3ebf6094bee9145347b.tar.gz scummvm-rg350-dc91dcde00db746a934fe3ebf6094bee9145347b.tar.bz2 scummvm-rg350-dc91dcde00db746a934fe3ebf6094bee9145347b.zip | |
Adding some missing stuff to the PS2 port (it still will require quite some work to get it working again)
svn-id: r27799
Diffstat (limited to 'backends/platform/ps2/systemps2.cpp')
| -rw-r--r-- | backends/platform/ps2/systemps2.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp index 32290bddea..6572166e91 100644 --- a/backends/platform/ps2/systemps2.cpp +++ b/backends/platform/ps2/systemps2.cpp @@ -332,6 +332,16 @@ OSystem_PS2::OSystem_PS2(const char *elfPath) { OSystem_PS2::~OSystem_PS2(void) { } +void OSystem_PS2::initBackend() { + // FIXME: Should probably move lots of stuff from the constructor to here + _mixer = new Audio::Mixer(); + _timer = new DefaultTimerManager(); + setSoundCallback(Audio::Mixer::mixCallback, _mixer); + setTimerCallback(&timer_handler, 10); + + OSystem::initBackend(); +} + void OSystem_PS2::initTimer(void) { // first setup the two threads that get activated by the timer: // the timerthread and the soundthread |
