diff options
author | Nicola Mettifogo | 2009-03-14 15:09:31 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-03-14 15:09:31 +0000 |
commit | 8723afd6f4a6c5d7163d509b0fa22cd562de3233 (patch) | |
tree | de78120028822db888e83e373c9a7e1d830608d6 /engines/parallaction/parallaction_br.cpp | |
parent | 7fe0592f0facda5444124a9171cd2d95de4c0755 (diff) | |
download | scummvm-rg350-8723afd6f4a6c5d7163d509b0fa22cd562de3233.tar.gz scummvm-rg350-8723afd6f4a6c5d7163d509b0fa22cd562de3233.tar.bz2 scummvm-rg350-8723afd6f4a6c5d7163d509b0fa22cd562de3233.zip |
* 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
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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(); |