diff options
author | Paul Gilbert | 2018-07-04 19:28:04 -0700 |
---|---|---|
committer | Paul Gilbert | 2018-07-04 19:28:04 -0700 |
commit | 3128e5294e3d7f2bbcd2e0528b8507b691b6064a (patch) | |
tree | 2ec9b96db6448d45cb7f1c99413f76cfd00b577a /engines/xeen/sound_driver_adlib.h | |
parent | bdd98756ca64fb92b789710a9e26fc8e56fe55a5 (diff) | |
download | scummvm-rg350-3128e5294e3d7f2bbcd2e0528b8507b691b6064a.tar.gz scummvm-rg350-3128e5294e3d7f2bbcd2e0528b8507b691b6064a.tar.bz2 scummvm-rg350-3128e5294e3d7f2bbcd2e0528b8507b691b6064a.zip |
XEEN: Properly handle SFX & Music volume control
Diffstat (limited to 'engines/xeen/sound_driver_adlib.h')
-rw-r--r-- | engines/xeen/sound_driver_adlib.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/xeen/sound_driver_adlib.h b/engines/xeen/sound_driver_adlib.h index def25574f6..8604184df0 100644 --- a/engines/xeen/sound_driver_adlib.h +++ b/engines/xeen/sound_driver_adlib.h @@ -99,7 +99,12 @@ private: /** * Starts playing an instrument */ - void playInstrument(byte channelNum, const byte *data, byte volume); + void playInstrument(byte channelNum, const byte *data, bool isFx); + + /** + * Calculates the scaling/volume level to output based on sfx or music master volume + */ + byte calculateLevel(byte level, bool isFx); protected: virtual bool musSetInstrument(const byte *&srcP, byte param); virtual bool musSetPitchWheel(const byte *&srcP, byte param); |