git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6706
d7cf8633-e32d-0410-b094-
e92efae38249
return NULL;
sfx = S_FindName (name);
+
+ // clear the FILEMISSING flag so that S_LoadSound will try again on a
+ // previously missing file
+ sfx->flags &= ~ SFXFLAG_FILEMISSING;
+
if (sfx == NULL)
return NULL;
{
size_t newsampleframes, memsize;
snd_buffer_t* sb;
-
+
newsampleframes = (double)sampleframes * (double)sb_speed / (double)in_format->speed;
memsize = newsampleframes * in_format->channels * in_format->width;
return true;
// If we weren't able to load it previously, no need to retry
+ // Note: S_PrecacheSound clears this flag to cause a retry
if (sfx->flags & SFXFLAG_FILEMISSING)
return false;