1
0
Fork 0
forked from fte/fteqw

Fix quad-speaker audio crash when LG is fired (issue reported by Monster).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5481 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-06-21 23:08:34 +00:00
parent 9c7ba654b5
commit 73ef27d709

View file

@ -614,7 +614,7 @@ static void SND_PaintChannel16_O4I1 (channel_t *ch, sfxcache_t *sc, int count, i
}
else
{
sfx = (signed short *)sc->data + pos;
sfx = (signed short *)sc->data + (pos>>PITCHSHIFT);
for (i=0 ; i<count ; i++)
{
paintbuffer[i].s[0] += (sfx[i] * vol[0]) >> 8;