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:
parent
9c7ba654b5
commit
73ef27d709
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue