aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-11-17 22:52:21 +0000
committerPaweł Kołodziejski2003-11-17 22:52:21 +0000
commit3ec24507ca70a925c2063ae87e5e9e41d8648e4f (patch)
tree7765bab064f6f1fff19be2044e17b9bbb66e3104 /scumm
parent5334ce49a884158c4f228f94a4a8fd05bf9eab12 (diff)
downloadscummvm-rg350-3ec24507ca70a925c2063ae87e5e9e41d8648e4f.tar.gz
scummvm-rg350-3ec24507ca70a925c2063ae87e5e9e41d8648e4f.tar.bz2
scummvm-rg350-3ec24507ca70a925c2063ae87e5e9e41d8648e4f.zip
added voice support for mac dig demo
svn-id: r11330
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index e6dd3cd356..d917fcc94d 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -534,11 +534,15 @@ void Sound::startTalkSound(uint32 offset, uint32 b, int mode, PlayingSoundHandle
return;
}
- sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b);
_sfxFile->close();
+ sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b);
_sfxFile->open(filename);
if (!_sfxFile->isOpen()) {
- warning("startTalkSound: dig demo: voc file not found: %s", filename);
+ sprintf(filename, "%d.%d.voc", offset, b);
+ _sfxFile->open(filename);
+ }
+ if (!_sfxFile->isOpen()) {
+ warning("startTalkSound: dig demo: voc file not found");
return;
}