aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound/sound.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2015-05-29 00:26:46 -0400
committerMatthew Hoops2015-07-07 20:19:45 -0400
commite31da911c98824b746d8804a63df9695216bc08e (patch)
treea4ba5958371976ee27fda117be7ad6d6cd6ba72e /engines/gob/sound/sound.cpp
parentf7c785b37b5fb00029ebb04362f8a733f556e3dd (diff)
downloadscummvm-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/sound.cpp')
-rw-r--r--engines/gob/sound/sound.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/gob/sound/sound.cpp b/engines/gob/sound/sound.cpp
index d2b2d3d6e8..9b19b9c52c 100644
--- a/engines/gob/sound/sound.cpp
+++ b/engines/gob/sound/sound.cpp
@@ -425,6 +425,16 @@ int32 Sound::adlibGetRepeating() const {
return false;
}
+void Sound::adlibSyncVolume() {
+ if (!_hasAdLib)
+ return;
+
+ if (_adlPlayer)
+ _adlPlayer->syncVolume();
+ if (_mdyPlayer)
+ _mdyPlayer->syncVolume();
+}
+
void Sound::adlibSetRepeating(int32 repCount) {
if (!_hasAdLib)
return;