- fixed 16 bit VOC loader.

This commit is contained in:
Christoph Oelckers 2019-12-16 13:18:27 +01:00
parent fd9a3a9f16
commit b38d8a6dc2

View file

@ -400,7 +400,7 @@ std::pair<SoundHandle,bool> SoundRenderer::LoadSoundVoc(uint8_t *sfxdata, int le
if (codec == 0) if (codec == 0)
bits = 8; bits = 8;
else if (codec == 4) else if (codec == 4)
bits = -16; bits = 16;
else okay = false; else okay = false;
len += blocksize - 2; len += blocksize - 2;
} }
@ -451,7 +451,7 @@ std::pair<SoundHandle,bool> SoundRenderer::LoadSoundVoc(uint8_t *sfxdata, int le
if (codec == 0) if (codec == 0)
bits = 8; bits = 8;
else if (codec == 4) else if (codec == 4)
bits = -16; bits = 16;
else okay = false; else okay = false;
len += blocksize - 12; len += blocksize - 12;
} else okay = false; } else okay = false;