mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 01:41:10 +00:00
I'm getting pretty annoyed with this cache-release bug :P
This commit is contained in:
parent
3bc7921a99
commit
e994e622b5
1 changed files with 7 additions and 1 deletions
|
@ -108,8 +108,14 @@ SND_CacheRelease (sfx_t *sfx)
|
|||
block->buffer = 0;
|
||||
// due to the possibly asynchronous nature of the mixer, the cache
|
||||
// may have been flushed behind our backs
|
||||
if (block->cache.data)
|
||||
if (block->cache.data) {
|
||||
if (!Cache_ReadLock (&bloc->cache)) {
|
||||
Sys_Printf ("WARNING: taniwha screwed up in the sound engine: %s\n",
|
||||
sfx->name);
|
||||
return;
|
||||
}
|
||||
Cache_Release (&block->cache);
|
||||
}
|
||||
}
|
||||
|
||||
sfxbuffer_t *
|
||||
|
|
Loading…
Reference in a new issue