aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/sound.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/macventure/sound.h')
-rw-r--r--engines/macventure/sound.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/macventure/sound.h b/engines/macventure/sound.h
index 58fc650b00..d1b1bb8a37 100644
--- a/engines/macventure/sound.h
+++ b/engines/macventure/sound.h
@@ -29,6 +29,8 @@
#include "common/file.h"
#include "common/hashmap.h"
+#include "audio/mixer.h"
+
namespace MacVenture {
enum SoundType {
@@ -47,7 +49,7 @@ public:
SoundAsset(Container *container, ObjID id);
~SoundAsset();
- void play();
+ void play(Audio::Mixer *mixer, Audio::SoundHandle *soundHandle);
uint32 getPlayLength();
private:
@@ -72,7 +74,7 @@ private:
class SoundManager {
public:
- SoundManager(MacVentureEngine *engine);
+ SoundManager(MacVentureEngine *engine, Audio::Mixer *mixer);
~SoundManager();
uint32 playSound(ObjID sound);
@@ -84,6 +86,8 @@ private:
Container *_container;
Common::HashMap<ObjID, SoundAsset*> _assets;
+ Audio::SoundHandle _handle;
+ Audio::Mixer *_mixer;
};
} // End of namespace MacVenture