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:
parent
cdf7815cf7
commit
42d428df5a
8 changed files with 48 additions and 27 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue