diff options
author | Travis Howell | 2003-09-02 03:21:14 +0000 |
---|---|---|
committer | Travis Howell | 2003-09-02 03:21:14 +0000 |
commit | 3f2ca2b36ad9de47e8cb4a54ad24f1f1d98330bf (patch) | |
tree | 7b50981eee72e0e79503d131239d993babab0ac5 | |
parent | 7b26efda21a113ce710048d983f00c6970561785 (diff) | |
download | scummvm-rg350-3f2ca2b36ad9de47e8cb4a54ad24f1f1d98330bf.tar.gz scummvm-rg350-3f2ca2b36ad9de47e8cb4a54ad24f1f1d98330bf.tar.bz2 scummvm-rg350-3f2ca2b36ad9de47e8cb4a54ad24f1f1d98330bf.zip |
Fix from Hibernatus, correct start position for sfx in Amiga maniac/zak.
svn-id: r9960
-rw-r--r-- | scumm/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index dac94c496d..3333c3faa1 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -459,14 +459,14 @@ void Sound::playSound(int soundID) { // Some very basic sound effects support if (READ_BE_UINT16(ptr + 14) == 0x0880) { size = READ_BE_UINT16(ptr + 6); - // Not sure if this is correct start point int start = READ_BE_UINT16(ptr + 8); + start +=10; rate = 11000; sound = (char *)malloc(size); memcpy(sound,ptr + start,size); // Experimental sound looping support - if (start == 98 | start == 96) + if (start == 108 | start == 106) _scumm->_mixer->playRaw(NULL, sound, size, rate, SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_LOOP, 127, 0, soundID, start,size); |