aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2011-07-17 00:08:52 +0200
committerJohannes Schickel2011-07-17 00:08:52 +0200
commit8800794f4d89f9f920a623dd39cd9d4cf370f827 (patch)
treedaed81535d2f9a160ee54819223bbc0502b8e621 /engines/scumm
parentc70963671616b5cb92eb91125b97ce6929d58a8d (diff)
downloadscummvm-rg350-8800794f4d89f9f920a623dd39cd9d4cf370f827.tar.gz
scummvm-rg350-8800794f4d89f9f920a623dd39cd9d4cf370f827.tar.bz2
scummvm-rg350-8800794f4d89f9f920a623dd39cd9d4cf370f827.zip
SCUMM: Clarify PC Speaker style sound resource handling with a comment.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp
index 544abe6b1d..4d9086b22a 100644
--- a/engines/scumm/sound.cpp
+++ b/engines/scumm/sound.cpp
@@ -1142,6 +1142,9 @@ int ScummEngine::readSoundResource(ResId idx) {
break;
}
+ // We only allow SPK resources for PC Speaker, PCJr and CMS here
+ // since other resource would sound horribly with their output
+ // drivers.
if ((_musicType == MDT_PCSPK || _musicType == MDT_PCJR || _musicType == MDT_CMS) && pri != 11)
pri = -1;