diff options
Diffstat (limited to 'engines/neverhood/module1200.cpp')
-rw-r--r-- | engines/neverhood/module1200.cpp | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/engines/neverhood/module1200.cpp b/engines/neverhood/module1200.cpp index 7599d7655d..33b791aa9b 100644 --- a/engines/neverhood/module1200.cpp +++ b/engines/neverhood/module1200.cpp @@ -39,12 +39,12 @@ Module1200::Module1200(NeverhoodEngine *vm, Module *parentModule, int which) createScene(0, 0); } - // TODO SoundMan_addMusic(0x00478311, 0x62222CAE); - // TODO SoundMan_startMusic(0x62222CAE, 0, 0, 1); + _vm->_soundMan->addMusic(0x00478311, 0x62222CAE); + _vm->_soundMan->startMusic(0x62222CAE, 0, 0); } Module1200::~Module1200() { - // TODO SoundMan_deleteMusicGroup(0x00478311); + _vm->_soundMan->deleteMusicGroup(0x00478311); } void Module1200::createScene(int sceneNum, int which) { @@ -58,7 +58,7 @@ void Module1200::createScene(int sceneNum, int which) { _childObject = new Scene1202(_vm, this, which); break; case 2: - // TODO SoundMan_stopMusic(0x62222CAE, 0, 0); + _vm->_soundMan->stopMusic(0x62222CAE, 0, 0); createSmackerScene(0x31890001, true, true, false); setGlobalVar(0x2A02C07B, 1); break; @@ -87,7 +87,7 @@ void Module1200::updateScene() { createScene(0, 1); break; case 2: - // TODO SoundMan_startMusic(0x62222CAE, 0, 0, 1); + _vm->_soundMan->startMusic(0x62222CAE, 0, 0); createScene(0, 3); break; } @@ -371,7 +371,7 @@ AsScene1201TntMan::AsScene1201TntMan(NeverhoodEngine *vm, Scene *parentScene, Sp } AsScene1201TntMan::~AsScene1201TntMan() { - // TODO SoundMan_deleteSoundGroup(0x01D00560); + _vm->_soundMan->deleteSoundGroup(0x01D00560); } uint32 AsScene1201TntMan::handleMessage(int messageNum, const MessageParam ¶m, Entity *sender) { @@ -426,8 +426,8 @@ void AsScene1201TntMan::sub40CD60() { } void AsScene1201TntMan::sub40CD90() { - // TODO SoundMan_addSound(0x01D00560, 0x4B044624, true); - // TODO SoundMan_playSoundLooping(0x4B044624); + _vm->_soundMan->addSound(0x01D00560, 0x4B044624); + _vm->_soundMan->playSoundLooping(0x4B044624); _flag = true; startAnimation(0x85084190, 0, -1); SetMessageHandler(&AsScene1201TntMan::handleMessage); @@ -447,7 +447,7 @@ Class465::Class465(NeverhoodEngine *vm, Sprite *asTntMan) } Class465::~Class465() { - // TODO SoundMan_deleteSoundGroup(0x041080A4); + _vm->_soundMan->deleteSoundGroup(0x041080A4); } void Class465::update() { @@ -455,8 +455,8 @@ void Class465::update() { if (getGlobalVar(0x20A0C516)) { setVisible(true); SetUpdateHandler(&AnimatedSprite::update); - // TODO SoundMan_addSound(0x041080A4, 0x460A1050, true); - // TODO SoundMan_playSoundLooping(0x460A1050); + _vm->_soundMan->addSound(0x041080A4, 0x460A1050); + _vm->_soundMan->playSoundLooping(0x460A1050); } } @@ -1227,10 +1227,7 @@ bool Scene1202::isSolved() { } void Scene1202::doPaletteEffect() { -#if 0 // TODO - Palette2 *palette2 = (Palette2*)_palette; - palette2->startFadeToPalette(24); -#endif + // TODO } } // End of namespace Neverhood |