]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sound.h
Lots of str[n]cat, str[n]cpy, and [v]sprintf have been replaced by strlcat, strlcpy...
[xonotic/darkplaces.git] / sound.h
diff --git a/sound.h b/sound.h
index 684102eece285082e775d662d857da8e09af6d3e..7fd841ded43dc871e549ac345a5fcbbf73ce1cd3 100644 (file)
--- a/sound.h
+++ b/sound.h
@@ -46,6 +46,7 @@ typedef struct sfx_s
        char    name[MAX_QPATH];
        mempool_t       *mempool;
        sfxcache_t      *sfxcache;
+       int silentlymissing; // true if missing and loaded with complain = false
 } sfx_t;
 
 typedef struct
@@ -65,6 +66,7 @@ typedef struct
 typedef struct
 {
        sfx_t   *sfx;                   // sfx number
+       int             forceloop;              // force looping even if the sound is not looped
        int             leftvol;                // 0-255 volume
        int             rightvol;               // 0-255 volume
        int             end;                    // end time in global paintsamples
@@ -112,7 +114,7 @@ void S_InitPaintChannels (void);
 channel_t *SND_PickChannel(int entnum, int entchannel);
 
 // spatializes a channel
-void SND_Spatialize(channel_t *ch);
+void SND_Spatialize(channel_t *ch, int isstatic);
 
 // initializes cycling through a DMA buffer and returns information on it
 qboolean SNDDMA_Init(void);