we were reading 8 bytes too much on DIGI sounds

svn-id: r6648
This commit is contained in:
Jonathan Gray 2003-03-01 13:32:45 +00:00
parent 419761549c
commit d31b7439e1

View File

@ -224,7 +224,7 @@ void Sound::playSound(int soundID) {
if (READ_UINT32_UNALIGNED(ptr) != MKID('SDAT'))
return; // abort
size = READ_BE_UINT32_UNALIGNED(ptr+4);
size = READ_BE_UINT32_UNALIGNED(ptr+4) - 8;
// FIXME - what value here ?!? 11025 is just a guess based on strings in w32 bin, prev guess 8000
rate = 11025;