]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sound.h
Added a couple of function skeletons for the automatic unloading of unused sounds...
[xonotic/darkplaces.git] / sound.h
diff --git a/sound.h b/sound.h
index e0ef6c73049e5a2f5acf49c71c5ed22e2b68f857..d0c8418c311c98fef96a76a7f92d0fe4592dc62e 100644 (file)
--- a/sound.h
+++ b/sound.h
@@ -46,7 +46,7 @@ typedef struct sfx_s
        char    name[MAX_QPATH];
        mempool_t       *mempool;
        sfxcache_t      *sfxcache;
        char    name[MAX_QPATH];
        mempool_t       *mempool;
        sfxcache_t      *sfxcache;
-       int silentlymissing; // true if missing and loaded with complain = false
+       qboolean silentlymissing; // true if missing and loaded with complain = false
 } sfx_t;
 
 typedef struct
 } sfx_t;
 
 typedef struct
@@ -100,9 +100,8 @@ void S_ExtraUpdate (void);
 sfx_t *S_GetCached(const char *name);
 sfx_t *S_PrecacheSound (char *sample, int complain);
 void S_TouchSound (char *sample);
 sfx_t *S_GetCached(const char *name);
 sfx_t *S_PrecacheSound (char *sample, int complain);
 void S_TouchSound (char *sample);
-void S_ClearPrecache (void);
-void S_BeginPrecaching (void);
-void S_EndPrecaching (void);
+void S_ClearUsed (void);
+void S_PurgeUnused (void);
 void S_PaintChannels(int endtime);
 void S_InitPaintChannels (void);
 
 void S_PaintChannels(int endtime);
 void S_InitPaintChannels (void);