aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.cpp
diff options
context:
space:
mode:
authorJames Brown2002-10-16 09:11:08 +0000
committerJames Brown2002-10-16 09:11:08 +0000
commit96c900f095bea4ed64a3e339df457e3eae062f9c (patch)
treedd9e9039b5063e28caef2b18076a3e2e67864379 /scumm/sound.cpp
parent41b61adac07d3fc0cce03ef460a655d7d7cf2e20 (diff)
downloadscummvm-rg350-96c900f095bea4ed64a3e339df457e3eae062f9c.tar.gz
scummvm-rg350-96c900f095bea4ed64a3e339df457e3eae062f9c.tar.bz2
scummvm-rg350-96c900f095bea4ed64a3e339df457e3eae062f9c.zip
Make it possible to disable digitalimuse by just commenting out it's
creation in scummvm.cpp svn-id: r5162
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r--scumm/sound.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 12db8dc8c5..7f4b303833 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -182,7 +182,8 @@ void Sound::playSound(int sound) {
ptr = _scumm->getResourceAddress(rtSound, sound);
if (ptr) {
if (READ_UINT32_UNALIGNED(ptr) == MKID('iMUS')){
- _scumm->_imuseDigital->startSound(sound);
+ if (_scumm->_imuseDigital)
+ _scumm->_imuseDigital->startSound(sound);
return;
}
else if (READ_UINT32_UNALIGNED(ptr) == MKID('SOUN')) {