From 18db41db506b1e18e050e8dded44dc8501b9bc8f Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 8 May 2008 15:51:02 +0000 Subject: Implemented the background "music" / atmospheric sounds in Woodruff svn-id: r31949 --- engines/gob/sound/sound.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'engines/gob/sound/sound.h') diff --git a/engines/gob/sound/sound.h b/engines/gob/sound/sound.h index 81b48688c4..b59510e4bb 100644 --- a/engines/gob/sound/sound.h +++ b/engines/gob/sound/sound.h @@ -32,6 +32,7 @@ #include "gob/sound/adlib.h" #include "gob/sound/infogrames.h" #include "gob/sound/cdrom.h" +#include "gob/sound/bgatmosphere.h" namespace Gob { @@ -49,7 +50,7 @@ public: const SoundDesc *sampleGetBySlot(int slot) const; int sampleGetNextFreeSlot() const; - bool sampleLoad(SoundDesc *sndDesc, const char *fileName); + bool sampleLoad(SoundDesc *sndDesc, const char *fileName, bool tryExist = true); void sampleFree(SoundDesc *sndDesc, bool noteAdlib = false, int index = -1); @@ -118,6 +119,16 @@ public: void cdTest(int trySubst, const char *label); + + // Background Atmosphere + void bgPlay(const char *base, int count); + void bgStop(); + + void bgSetPlayMode(BackgroundAtmosphere::PlayMode mode); + + void bgShade(); + void bgUnshade(); + private: GobEngine *_vm; @@ -128,6 +139,7 @@ private: AdLib *_adlib; Infogrames *_infogrames; CDROM *_cdrom; + BackgroundAtmosphere *_bgatmos; }; } // End of namespace Gob -- cgit v1.2.3