diff options
author | Borja Lorente | 2016-08-01 17:19:29 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 19:00:36 +0200 |
commit | dd2908fe42d54037436e7b3a05bc275d11822a93 (patch) | |
tree | c17e824fbfcd99e651062a1882f2e162e9d2abe1 /engines/macventure/sound.h | |
parent | 842bff03e0fd949bcac1b3fd4c281d3fc5547ca5 (diff) | |
download | scummvm-rg350-dd2908fe42d54037436e7b3a05bc275d11822a93.tar.gz scummvm-rg350-dd2908fe42d54037436e7b3a05bc275d11822a93.tar.bz2 scummvm-rg350-dd2908fe42d54037436e7b3a05bc275d11822a93.zip |
MACVENTURE: Add basic audio playback
Diffstat (limited to 'engines/macventure/sound.h')
-rw-r--r-- | engines/macventure/sound.h | 8 |
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 |