From 8723afd6f4a6c5d7163d509b0fa22cd562de3233 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sat, 14 Mar 2009 15:09:31 +0000 Subject: * Added a generic sound manager that hides engine-specific managers and allows accessing them through a simplified command/parameter interface. * Updated client code to use the new manager. * Moved Nippon Safes sound code from sound.cpp to sound_ns.cpp. svn-id: r39394 --- engines/parallaction/parallaction_br.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/parallaction/parallaction_br.cpp') diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 24fbc1018e..5f2ced4d1f 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -53,6 +53,8 @@ Common::Error Parallaction_br::init() { _screenWidth = 640; _screenHeight = 400; + SoundManImpl* _soundManI = 0; + if (getPlatform() == Common::kPlatformPC) { if (getFeatures() & GF_DEMO) { _disk = new DosDemoDisk_br(this); @@ -60,15 +62,15 @@ Common::Error Parallaction_br::init() { _disk = new DosDisk_br(this); } _disk->setLanguage(2); // NOTE: language is now hardcoded to English. Original used command-line parameters. - _soundMan = new DummySoundMan(this); + _soundManI = new DummySoundMan(); } else { _disk = new AmigaDisk_br(this); _disk->setLanguage(2); // NOTE: language is now hardcoded to English. Original used command-line parameters. - _soundMan = new AmigaSoundMan(this); + _soundManI = new DummySoundMan(); } _disk->init(); - + _soundMan = new SoundMan(_soundManI); initResources(); initFonts(); -- cgit v1.2.3