]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mem.c
- SFXs no longer allocate mempools, they use the sound mempool directly.
[xonotic/darkplaces.git] / snd_mem.c
index 281e513a0b222216a6710454dc1e8b94ff0835f3..1e94c27035e21c629eac164fdb04a2371f38500b 100644 (file)
--- a/snd_mem.c
+++ b/snd_mem.c
@@ -213,20 +213,3 @@ qboolean S_LoadSound (sfx_t *s, qboolean complain)
                Con_Printf("S_LoadSound: Couldn't load \"%s\"\n", s->name);
        return false;
 }
-
-void S_UnloadSound (sfx_t *s)
-{
-       if (s->fetcher != NULL)
-       {
-               unsigned int i;
-
-               // Stop all channels that use this sound
-               for (i = 0; i < total_channels ; i++)
-                       if (channels[i].sfx == s)
-                               S_StopChannel (i);
-
-               s->fetcher = NULL;
-               s->fetcher_data = NULL;
-               Mem_FreePool(&s->mempool);
-       }
-}