mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed 16 bit VOC loader.
This commit is contained in:
parent
fd9a3a9f16
commit
b38d8a6dc2
1 changed files with 2 additions and 2 deletions
|
@ -400,7 +400,7 @@ std::pair<SoundHandle,bool> 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<SoundHandle,bool> 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;
|
||||
|
|
Loading…
Reference in a new issue