aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/sound_nebular.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-18 20:29:50 -0400
committerPaul Gilbert2015-03-18 20:29:50 -0400
commit4009305070f3f8a1a718526b3e00fc9902a9d87e (patch)
treecc3db0d3da6eb34d22bfb062fdd7ee125bb70d22 /engines/mads/nebular/sound_nebular.h
parent9a9f569f3b24ae964506895a0b56a35e1aa2eeaf (diff)
downloadscummvm-rg350-4009305070f3f8a1a718526b3e00fc9902a9d87e.tar.gz
scummvm-rg350-4009305070f3f8a1a718526b3e00fc9902a9d87e.tar.bz2
scummvm-rg350-4009305070f3f8a1a718526b3e00fc9902a9d87e.zip
MADS: Hook up ScummVM volume control
Diffstat (limited to 'engines/mads/nebular/sound_nebular.h')
-rw-r--r--engines/mads/nebular/sound_nebular.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/mads/nebular/sound_nebular.h b/engines/mads/nebular/sound_nebular.h
index cfacb211a4..d2fc552eec 100644
--- a/engines/mads/nebular/sound_nebular.h
+++ b/engines/mads/nebular/sound_nebular.h
@@ -70,7 +70,7 @@ public:
int _field19;
byte *_soundData;
int _field1D;
- int _field1E;
+ int _volumeOffset;
int _field1F;
// TODO: Only used by asound.003. Figure out usage
@@ -146,6 +146,7 @@ class ASound : public Audio::AudioStream {
private:
Common::List<CachedDataEntry> _dataCache;
uint16 _randomSeed;
+ int _masterVolume;
/**
* Does the initial Adlib initialisation
@@ -382,6 +383,11 @@ public:
* Return sample rate
*/
virtual int getRate() const { return 11025; }
+
+ /**
+ * Set the volume
+ */
+ void setVolume(int volume);
};
class ASound1 : public ASound {