diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/sound.h | 15 | ||||
-rw-r--r-- | engines/xeen/worldofxeen/worldofxeen_game.cpp | 4 |
2 files changed, 11 insertions, 8 deletions
diff --git a/engines/xeen/sound.h b/engines/xeen/sound.h index b44bff7f30..fae3d76dba 100644 --- a/engines/xeen/sound.h +++ b/engines/xeen/sound.h @@ -29,14 +29,15 @@ namespace Xeen { +class SoundManager; + class VOC: public Common::File { + friend class SoundManager; +private: + SoundManager *_sound; public: - virtual ~VOC(); - - /** - * Play the given loaded sound - */ - void play(); + VOC() : _sound(nullptr) {} + virtual ~VOC() { stop(); } /** * Stop playing the sound @@ -58,6 +59,8 @@ public: void playSong(Common::SeekableReadStream &f) {} + void playSound(VOC &voc) {} + void playSample(const Common::SeekableReadStream *stream, int v2 = 1) {} bool playSample(int v1, int v2) { return false; } diff --git a/engines/xeen/worldofxeen/worldofxeen_game.cpp b/engines/xeen/worldofxeen/worldofxeen_game.cpp index 836f039cf6..665507d915 100644 --- a/engines/xeen/worldofxeen/worldofxeen_game.cpp +++ b/engines/xeen/worldofxeen/worldofxeen_game.cpp @@ -83,7 +83,7 @@ void WorldOfXeenEngine::showDarkSideTitle() { switch (idx) { case 17: - _sound->proc2(voc[0]); + _sound->playSound(voc[0]); break; case 34: case 44: @@ -91,7 +91,7 @@ void WorldOfXeenEngine::showDarkSideTitle() { nwcFrame = 0; break; case 35: - _sound->proc2(voc[1]); + _sound->playSound(voc[1]); break; default: ++nwcFrame; |