mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Disable S_ClearSoundLocks, preventing sounds from being marking purgable, and causing them to get prematurely evicted.
This fixes the absent sound issues in WWII GI. git-svn-id: https://svn.eduke32.com/eduke32@6874 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6688860ef7
commit
d31ae817f1
1 changed files with 2 additions and 0 deletions
|
@ -932,6 +932,7 @@ void S_Callback(uint32_t num)
|
||||||
|
|
||||||
void S_ClearSoundLocks(void)
|
void S_ClearSoundLocks(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CACHING_DOESNT_SUCK
|
||||||
int32_t i;
|
int32_t i;
|
||||||
int32_t const msp = g_highestSoundIdx;
|
int32_t const msp = g_highestSoundIdx;
|
||||||
|
|
||||||
|
@ -942,6 +943,7 @@ void S_ClearSoundLocks(void)
|
||||||
for (i = 0; i <= msp; ++i)
|
for (i = 0; i <= msp; ++i)
|
||||||
if (g_soundlocks[i] >= 200)
|
if (g_soundlocks[i] >= 200)
|
||||||
g_soundlocks[i] = 199;
|
g_soundlocks[i] = 199;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t A_CheckSoundPlaying(int32_t i, int32_t num)
|
int32_t A_CheckSoundPlaying(int32_t i, int32_t num)
|
||||||
|
|
Loading…
Reference in a new issue