diff options
author | Walter van Niftrik | 2015-05-29 00:26:46 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-07-07 20:19:45 -0400 |
commit | e31da911c98824b746d8804a63df9695216bc08e (patch) | |
tree | a4ba5958371976ee27fda117be7ad6d6cd6ba72e /engines/gob/sound/adlib.h | |
parent | f7c785b37b5fb00029ebb04362f8a733f556e3dd (diff) | |
download | scummvm-rg350-e31da911c98824b746d8804a63df9695216bc08e.tar.gz scummvm-rg350-e31da911c98824b746d8804a63df9695216bc08e.tar.bz2 scummvm-rg350-e31da911c98824b746d8804a63df9695216bc08e.zip |
GOB: Implement custom AdLib volume control
Diffstat (limited to 'engines/gob/sound/adlib.h')
-rw-r--r-- | engines/gob/sound/adlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/gob/sound/adlib.h b/engines/gob/sound/adlib.h index 6a6215298a..2c83b15f5b 100644 --- a/engines/gob/sound/adlib.h +++ b/engines/gob/sound/adlib.h @@ -53,6 +53,7 @@ public: void startPlay(); void stopPlay(); + void syncVolume(); // AudioStream API int readBuffer(int16 *buffer, const int numSamples); @@ -211,6 +212,8 @@ protected: void setTimerFrequency(int timerFrequency); private: + static const uint8 kVolumeTable[Audio::Mixer::kMaxMixerVolume + 1]; + static const uint8 kOperatorType [kOperatorCount]; static const uint8 kOperatorOffset[kOperatorCount]; static const uint8 kOperatorVoice [kOperatorCount]; @@ -235,6 +238,8 @@ private: Common::Mutex _mutex; + int _volume; + uint32 _rate; uint32 _toPoll; |