diff options
author | Travis Howell | 2003-08-30 15:32:57 +0000 |
---|---|---|
committer | Travis Howell | 2003-08-30 15:32:57 +0000 |
commit | 890c5cde042ce1fa1cce0c55e6ef7976dc2bbb9a (patch) | |
tree | 084f3d1679143cc00b4965d35bb4dc724d73044b /scumm | |
parent | 5825a28330fc7be2260407119440b7e1b9b86789 (diff) | |
download | scummvm-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.cpp | 12 |
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) |