add one shots to replay buffer
[carveJwlIkooP6JGAAIwe30JlM.git] / player.h
index e1b44fe1104a3fc87cb6da6ebc372a7f74833be3..f837cb955cb96b87a033e9879eed80a87d327a8a 100644 (file)
--- a/player.h
+++ b/player.h
@@ -117,8 +117,10 @@ struct {
       f32 subframe, volume;
       v3f location;
    }
-   sfx_buffer[4];
-   u32 sfx_buffer_count;
+   sfx_buffer[4],             /* large timeframe 1/10s; for networking */
+   local_sfx_buffer[2];       /* per framerate 1/30s; for replay */
+   u32 sfx_buffer_count, 
+       local_sfx_buffer_count;
 
    /*
     * Animation
@@ -142,7 +144,8 @@ struct {
     * -------------------------------------------------
     */
 
-   enum player_subsystem subsystem; /* .. prev */
+   enum player_subsystem subsystem, 
+                         observing_system; 
 
    /*
     * Rendering