aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound/bgatmosphere.h
diff options
context:
space:
mode:
authorOri Avtalion2016-04-14 17:18:33 +0300
committerOri Avtalion2016-04-14 17:18:33 +0300
commit064df1ff2761dea322c805b45c3b356067114799 (patch)
tree8528c400c91486efed51136d51b8b5a255907fc4 /engines/gob/sound/bgatmosphere.h
parent5e4980090198a334b136bcdce16ea6addbe708a2 (diff)
downloadscummvm-rg350-064df1ff2761dea322c805b45c3b356067114799.tar.gz
scummvm-rg350-064df1ff2761dea322c805b45c3b356067114799.tar.bz2
scummvm-rg350-064df1ff2761dea322c805b45c3b356067114799.zip
GOB: Reduce audio header dependencies
Diffstat (limited to 'engines/gob/sound/bgatmosphere.h')
-rw-r--r--engines/gob/sound/bgatmosphere.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/gob/sound/bgatmosphere.h b/engines/gob/sound/bgatmosphere.h
index c838a2c2bb..138b65a1c1 100644
--- a/engines/gob/sound/bgatmosphere.h
+++ b/engines/gob/sound/bgatmosphere.h
@@ -27,6 +27,7 @@
#include "common/mutex.h"
#include "common/random.h"
+#include "gob/sound/sound.h"
#include "gob/sound/soundmixer.h"
namespace Audio {
@@ -39,18 +40,13 @@ class SoundDesc;
class BackgroundAtmosphere : private SoundMixer {
public:
- enum PlayMode {
- kPlayModeLinear,
- kPlayModeRandom
- };
-
BackgroundAtmosphere(Audio::Mixer &mixer);
~BackgroundAtmosphere();
void playBA();
void stopBA();
- void setPlayMode(PlayMode mode);
+ void setPlayMode(Sound::BackgroundPlayMode mode);
void queueSample(SoundDesc &sndDesc);
void queueClear();
@@ -60,7 +56,7 @@ public:
void unshade();
private:
- PlayMode _playMode;
+ Sound::BackgroundPlayMode _playMode;
Common::Array<SoundDesc *> _queue;
int _queuePos;