1
0
Fork 0
forked from fte/fteqw

Fix #170 by force-updating the sound channel so that AL can get the memo.

This commit is contained in:
Marco Cawthorne 2023-07-24 13:29:06 -07:00
parent bd34d352d1
commit 65dccaf2db
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -2949,7 +2949,7 @@ static void S_UpdateSoundCard(soundcardinfo_t *sc, qboolean updateonly, channel_
if (sfx->loopstart == -1 && !(flags&CF_FORCELOOP)) //only skip if its not looping. if (sfx->loopstart == -1 && !(flags&CF_FORCELOOP)) //only skip if its not looping.
{ {
target_chan->sfx = NULL; target_chan->sfx = NULL;
return; // not audible at all goto updatechannel;
} }
target_chan->sfx = sfx; target_chan->sfx = sfx;
@ -2977,6 +2977,8 @@ static void S_UpdateSoundCard(soundcardinfo_t *sc, qboolean updateonly, channel_
} }
} }
updatechannel:
if (sc->ChannelUpdate) if (sc->ChannelUpdate)
sc->ChannelUpdate(sc, target_chan, chanupdatetype); sc->ChannelUpdate(sc, target_chan, chanupdatetype);
} }