]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
added showsound cvar which displays number of sounds actively being
[xonotic/darkplaces.git] / client.h
index 543c9b7b7d287ee44c78f949840254ebbdbdeb0b..d4ab3e05da463bf79410681a71cd199edde26c1f 100644 (file)
--- a/client.h
+++ b/client.h
@@ -485,6 +485,14 @@ typedef struct cl_downloadack_s
 }
 cl_downloadack_t;
 
+typedef struct cl_soundstats_s
+{
+       int mixedsounds;
+       int totalsounds;
+       int latency_milliseconds;
+}
+cl_soundstats_t;
+
 //
 // the client_static_t structure is persistent through an arbitrary number
 // of server connections
@@ -526,6 +534,9 @@ typedef struct client_static_s
        // LordHavoc: pausedemo
        qboolean demopaused;
 
+       // sound mixer statistics for showsound display
+       cl_soundstats_t soundstats;
+
        qboolean connect_trying;
        int connect_remainingtries;
        double connect_nextsendtime;