This is probably faster

git-svn-id: https://svn.eduke32.com/eduke32@6841 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-23 06:34:43 +00:00
parent 4551b276a1
commit 70b03fd608

View file

@ -380,8 +380,9 @@ void S_StopMusic(void)
void S_Cleanup(void) void S_Cleanup(void)
{ {
static uint32_t ldnum; static uint32_t ldnum;
uint32_t const odnum = dnum;
while (ldnum < dnum) while (ldnum < odnum)
{ {
uint32_t num = dq[ldnum++ & (DQSIZE - 1)]; uint32_t num = dq[ldnum++ & (DQSIZE - 1)];