]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sound.h
Fixed the sounds not being advanced in time while not being listened. This is a long...
[xonotic/darkplaces.git] / sound.h
diff --git a/sound.h b/sound.h
index ffefe94036e3253a9c28c4bc5b4d16682cbfee5f..c25ef15cbc2985abe198533ec4b5537d04d4f8df 100644 (file)
--- a/sound.h
+++ b/sound.h
@@ -78,7 +78,8 @@ typedef struct
        int             leftvol;                // 0-255 volume
        int             rightvol;               // 0-255 volume
        int             end;                    // end time in global paintsamples
-       int     pos;                    // sample position in sfx
+       int             lastptime;              // last time this channel was painted
+       int             pos;                    // sample position in sfx
        int             looping;                // where to loop, -1 = no looping
        int             entnum;                 // to allow overriding a specific sound
        int             entchannel;