aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-12-28 15:42:44 +0000
committerPaweł Kołodziejski2002-12-28 15:42:44 +0000
commit642cfec55639d9f84b8f9e527ad828c1fbd7a438 (patch)
treea847ad4774f718a3182e9568583c3bf93d583f17 /scumm
parentc13ba9ef64e9b5b3dc5060cb961bb7aea9aeecc3 (diff)
downloadscummvm-rg350-642cfec55639d9f84b8f9e527ad828c1fbd7a438.tar.gz
scummvm-rg350-642cfec55639d9f84b8f9e527ad828c1fbd7a438.tar.bz2
scummvm-rg350-642cfec55639d9f84b8f9e527ad828c1fbd7a438.zip
fix playVoice
svn-id: r6234
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index c022286c36..3b821774ab 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -1135,13 +1135,13 @@ int Sound::playBundleSound(char *sound) {
strcpy(name, sound);
strcat(name, ".IMX");
ptr = (byte *)malloc(1000000);
- if (_scumm->_bundle->decompressVoiceSampleByName(name, ptr, channels)) {
+ if (_scumm->_bundle->decompressVoiceSampleByName(name, ptr, channels) == 0) {
delete ptr;
return -1;
}
} else {
ptr = (byte *)malloc(1000000);
- if (_scumm->_bundle->decompressVoiceSampleByName(sound, ptr, channels)) {
+ if (_scumm->_bundle->decompressVoiceSampleByName(sound, ptr, channels) == 0) {
delete ptr;
return -1;
}
@@ -1163,7 +1163,6 @@ int Sound::playBundleSound(char *sound) {
bits = READ_BE_UINT32(ptr); ptr += 4;
rate = READ_BE_UINT32(ptr); ptr += 4;
channels = READ_BE_UINT32(ptr); ptr += 4;
- ptr += 16;
break;
case MKID_BE('TEXT'):
case MKID_BE('REGN'):