aboutsummaryrefslogtreecommitdiff
path: root/script_v1.cpp
diff options
context:
space:
mode:
authorJames Brown2002-05-11 06:51:11 +0000
committerJames Brown2002-05-11 06:51:11 +0000
commit48f4d103e0fa8e3aeaf56a430e87fc82d3a1593a (patch)
treec9b0dbfd62f06790f63dfaef63926d0398953804 /script_v1.cpp
parent1f46cee135a4195b27b522a0f3cebd8135b8ee65 (diff)
downloadscummvm-rg350-48f4d103e0fa8e3aeaf56a430e87fc82d3a1593a.tar.gz
scummvm-rg350-48f4d103e0fa8e3aeaf56a430e87fc82d3a1593a.tar.bz2
scummvm-rg350-48f4d103e0fa8e3aeaf56a430e87fc82d3a1593a.zip
Fix loom sound when using COMPRESSED_SOUND_FILE.
svn-id: r4276
Diffstat (limited to 'script_v1.cpp')
-rw-r--r--script_v1.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/script_v1.cpp b/script_v1.cpp
index 0619698b6f..fdb2d3106c 100644
--- a/script_v1.cpp
+++ b/script_v1.cpp
@@ -2715,10 +2715,9 @@ void Scumm::decodeParseString()
delay = (int)((getVarOrDirectWord(0x40) & 0xffff) * 7.5);
if (_gameId == GID_LOOM256) {
#ifdef COMPRESSED_SOUND_FILE
- playMP3CDTrack(1, 0, offset, delay);
-#else
- _system->play_cdrom(1, 0, offset, delay);
+ if (playMP3CDTrack(1, 0, offset, delay) == -1)
#endif
+ _system->play_cdrom(1, 0, offset, delay);
}
else
warning("parseString: 8");