fix misc things that I previously missed.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4625 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-03-30 10:43:05 +00:00
parent cdf7815cf7
commit 42d428df5a
8 changed files with 48 additions and 27 deletions

View file

@ -503,6 +503,16 @@ static void OpenAL_ChannelUpdate(soundcardinfo_t *sc, channel_t *chan, unsigned
offset = (chan->pos>>PITCHSHIFT) - sbuf.soundoffset;
sbuf.data += offset * sc->width*sc->numchannels;
sbuf.length -= offset;
if (!sbuf.length && (chan->pos>>PITCHSHIFT) == sbuf.soundoffset)
{
chan->sfx = NULL;
if (sfx->decoder.abort)
{
if (!S_IsPlayingSomewhere(sfx))
sfx->decoder.abort(sfx);
}
}
sbuf.soundoffset = 0;
//build a buffer with it and queue it up.