mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 15:12:19 +00:00
Fix #170 by force-updating the sound channel so that AL can get the memo.
This commit is contained in:
parent
bd34d352d1
commit
65dccaf2db
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue