[Scummvm-git-logs] scummvm master -> 980572c29bb45d81d9225e820d99c6938c8dbac9
athrxx
noreply at scummvm.org
Wed Oct 16 16:21:55 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
980572c29b SCI: (PC-98 audio) - fix sound enable switch for SCI0
Commit: 980572c29bb45d81d9225e820d99c6938c8dbac9
https://github.com/scummvm/scummvm/commit/980572c29bb45d81d9225e820d99c6938c8dbac9
Author: athrxx (athrxx at scummvm.org)
Date: 2024-10-16T18:16:05+02:00
Commit Message:
SCI: (PC-98 audio) - fix sound enable switch for SCI0
Changed paths:
engines/sci/sound/drivers/pc9801.cpp
diff --git a/engines/sci/sound/drivers/pc9801.cpp b/engines/sci/sound/drivers/pc9801.cpp
index 65882b900d1..5e1153c82c4 100644
--- a/engines/sci/sound/drivers/pc9801.cpp
+++ b/engines/sci/sound/drivers/pc9801.cpp
@@ -518,7 +518,7 @@ uint8 SoundChannel_PC9801::getVolume() {
uint16 partVolume = ((_assign != 0xFF) ? _parts[_assign]->getCurrentVolume() : 0);
if (_version == SCI_VERSION_0_LATE)
- return partVolume;
+ return _soundOn ? partVolume : 0;
partVolume += 1;
uint16 velocity = volumeTable1[_velo] + 1;
More information about the Scummvm-git-logs
mailing list