aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-08-30 15:32:57 +0000
committerTravis Howell2003-08-30 15:32:57 +0000
commit890c5cde042ce1fa1cce0c55e6ef7976dc2bbb9a (patch)
tree084f3d1679143cc00b4965d35bb4dc724d73044b /scumm
parent5825a28330fc7be2260407119440b7e1b9b86789 (diff)
downloadscummvm-rg350-890c5cde042ce1fa1cce0c55e6ef7976dc2bbb9a.tar.gz
scummvm-rg350-890c5cde042ce1fa1cce0c55e6ef7976dc2bbb9a.tar.bz2
scummvm-rg350-890c5cde042ce1fa1cce0c55e6ef7976dc2bbb9a.zip
Very basic sfx support for Amiga version of maniac/zak
svn-id: r9922
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 2b81e9fbe1..546580a138 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -453,6 +453,18 @@ void Sound::playSound(int soundID) {
}
}
+ if ((_scumm->_features & GF_AMIGA) && (_scumm->_version <= 2)) {
+ // Some very basic sound effects support
+ if (READ_BE_UINT16(ptr + 14) == 0x0880) {
+ size = READ_BE_UINT16(ptr + 6);
+ rate = 11000;
+ sound = (char *)malloc(size);
+ memcpy(sound,ptr + 100,size);
+ _scumm->_mixer->playRaw(NULL,sound,size,rate,SoundMixer::FLAG_AUTOFREE,soundID);
+ return;
+ }
+ }
+
if (_scumm->_gameId == GID_MONKEY_VGA || _scumm->_gameId == GID_MONKEY_EGA) {
// Sound is currently not supported at all in the amiga versions of these games
if (_scumm->_features & GF_AMIGA)