From b38d8a6dc2f9e3528bfaeebd2343180c604bb0c5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 16 Dec 2019 13:18:27 +0100 Subject: [PATCH] - fixed 16 bit VOC loader. --- source/common/sound/backend/i_sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/sound/backend/i_sound.cpp b/source/common/sound/backend/i_sound.cpp index 0a1dfdd05..72226695a 100644 --- a/source/common/sound/backend/i_sound.cpp +++ b/source/common/sound/backend/i_sound.cpp @@ -400,7 +400,7 @@ std::pair SoundRenderer::LoadSoundVoc(uint8_t *sfxdata, int le if (codec == 0) bits = 8; else if (codec == 4) - bits = -16; + bits = 16; else okay = false; len += blocksize - 2; } @@ -451,7 +451,7 @@ std::pair SoundRenderer::LoadSoundVoc(uint8_t *sfxdata, int le if (codec == 0) bits = 8; else if (codec == 4) - bits = -16; + bits = 16; else okay = false; len += blocksize - 12; } else okay = false;