diff options
author | johndoe123 | 2012-10-01 10:53:08 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:43:45 +0200 |
commit | 78df19c6486612ad57f0625099355b69c41badb8 (patch) | |
tree | bdb4a6c78058befaeb948c948967ef172716f03c /engines/neverhood | |
parent | a8dda6c5b69657023b6b3c472c083af86a74cb0c (diff) | |
download | scummvm-rg350-78df19c6486612ad57f0625099355b69c41badb8.tar.gz scummvm-rg350-78df19c6486612ad57f0625099355b69c41badb8.tar.bz2 scummvm-rg350-78df19c6486612ad57f0625099355b69c41badb8.zip |
NEVERHOOD: Change sound stuff in Module2100
Diffstat (limited to 'engines/neverhood')
-rw-r--r-- | engines/neverhood/module2100.cpp | 10 | ||||
-rw-r--r-- | engines/neverhood/module2100.h | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/engines/neverhood/module2100.cpp b/engines/neverhood/module2100.cpp index fd2a793a28..98b6e03cd4 100644 --- a/engines/neverhood/module2100.cpp +++ b/engines/neverhood/module2100.cpp @@ -78,7 +78,7 @@ void Module2100::updateScene() { // Scene2101 Class538::Class538(NeverhoodEngine *vm, bool flag) - : AnimatedSprite(vm, 1100), _soundResource(vm) { + : AnimatedSprite(vm, 1100) { // TODO createSurface3(100, dword_4B9018); createSurface(100, 640, 480); //TODO: Remove once the line above is done @@ -114,7 +114,7 @@ void Class538::openDoor() { startAnimation(0x0C202B9C, 0, -1); _newStickFrameIndex = -2; setVisible(true); - _soundResource.play(calcHash("fxDoorOpen32")); + playSound(0, calcHash("fxDoorOpen32")); } void Class538::closeDoor() { @@ -122,7 +122,7 @@ void Class538::closeDoor() { _newStickFrameIndex = -2; setVisible(true); NextState(&Class538::hide); - _soundResource.play(calcHash("fxDoorClose32")); + playSound(0, calcHash("fxDoorClose32")); } void Class538::hide() { @@ -157,7 +157,7 @@ uint32 Class539::handleMessage(int messageNum, const MessageParam ¶m, Entity } Class427::Class427(NeverhoodEngine *vm, Scene *parentScene, uint32 fileHash1, uint32 fileHash2, int surfacePriority, uint32 soundFileHash) - : StaticSprite(vm, 1100), _soundResource(vm), _parentScene(parentScene), _countdown(0), + : StaticSprite(vm, 1100), _parentScene(parentScene), _countdown(0), _fileHash1(fileHash1), _fileHash2(fileHash2), _soundFileHash(soundFileHash) { SetUpdateHandler(&Class427::update); @@ -193,7 +193,7 @@ uint32 Class427::handleMessage(int messageNum, const MessageParam ¶m, Entity load(_fileHash2, true, true); StaticSprite::update(); _countdown = 16; - _soundResource.play(_soundFileHash); + playSound(0, _soundFileHash); break; } return messageResult; diff --git a/engines/neverhood/module2100.h b/engines/neverhood/module2100.h index 65846d7ded..ff6898c7b0 100644 --- a/engines/neverhood/module2100.h +++ b/engines/neverhood/module2100.h @@ -45,7 +45,6 @@ class Class538 : public AnimatedSprite { public: Class538(NeverhoodEngine *vm, bool flag); protected: - SoundResource _soundResource; uint32 handleMessage(int messageNum, const MessageParam ¶m, Entity *sender); void openDoor(); void closeDoor(); @@ -65,7 +64,6 @@ public: Class427(NeverhoodEngine *vm, Scene *parentScene, uint32 fileHash1, uint32 fileHash2, int surfacePriority, uint32 soundFileHash); protected: Scene *_parentScene; - SoundResource _soundResource; uint32 _soundFileHash; uint32 _fileHash1, _fileHash2; int16 _countdown; |