]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.h
fix bug in last patch - must set trace.endpos AFTER calling TracePoint
[xonotic/darkplaces.git] / snd_main.h
index a56227854fe9f0b72dbd3a97343dece28925c446..07cc6e114afe269b2b9b160fd06c621d3858fd31 100644 (file)
@@ -66,9 +66,8 @@ struct sfx_s
 
                                                                                // One lock is automatically granted while the sfx is
                                                                                // playing (and removed when stopped). Locks can also be
-       int                                     locks;                  // added by S_PrecacheSound and S_ServerSounds.
-                                                                               // A SFX with no lock and no SFXFLAG_PERMANENTLOCK is
-                                                                               // freed at level change by S_ServerSounds.
+       int                                     locks;                  // added by S_PrecacheSound.
+                                                                               // A SFX with no lock, no SFXFLAG_PERMANENTLOCK, and not precached after a level change is freed
 
        unsigned int            flags;                  // cf SFXFLAG_* defines
        unsigned int            loopstart;              // in sample frames. equals total_length if not looped
@@ -185,6 +184,9 @@ qboolean SndSys_LockRenderBuffer (void);
 // Release the exclusive lock on "snd_renderbuffer"
 void SndSys_UnlockRenderBuffer (void);
 
+// if the sound system can generate events, send them
+void SndSys_SendKeyEvents(void);
+
 // exported for capturevideo so ogg can see all channels
 typedef struct portable_samplepair_s
 {