cvs diff -wc -r start -r quake1capture_0001 Index: WinQuake/cl_demo.c =================================================================== RCS file: /cvsroot/quakecapture/quake1capture/WinQuake/cl_demo.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -c -r1.1.1.1 -r1.2 *** WinQuake/cl_demo.c 1 Aug 2003 01:34:32 -0000 1.1.1.1 --- WinQuake/cl_demo.c 21 Aug 2003 01:12:25 -0000 1.2 *************** *** 54,59 **** --- 54,62 ---- if (cls.timedemo) CL_FinishTimeDemo (); + + // Capture patch + CapturePatch_OnStopPlayback(); } /* Index: WinQuake/cl_main.c =================================================================== RCS file: /cvsroot/quakecapture/quake1capture/WinQuake/cl_main.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -c -r1.1.1.1 -r1.2 *** WinQuake/cl_main.c 1 Aug 2003 01:34:35 -0000 1.1.1.1 --- WinQuake/cl_main.c 21 Aug 2003 01:12:25 -0000 1.2 *************** *** 753,757 **** --- 753,760 ---- Cmd_AddCommand ("stop", CL_Stop_f); Cmd_AddCommand ("playdemo", CL_PlayDemo_f); Cmd_AddCommand ("timedemo", CL_TimeDemo_f); + + // Capture patch + CapturePatch_Init(); } Index: WinQuake/client.h =================================================================== RCS file: /cvsroot/quakecapture/quake1capture/WinQuake/client.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -c -r1.1.1.1 -r1.2 *** WinQuake/client.h 1 Aug 2003 01:34:32 -0000 1.1.1.1 --- WinQuake/client.h 21 Aug 2003 01:12:25 -0000 1.2 *************** *** 19,24 **** --- 19,27 ---- */ // client.h + // Capture patch + #include "capture/patch.h" + typedef struct { vec3_t viewangles; *************** *** 137,142 **** --- 140,148 ---- struct qsocket_s *netcon; sizebuf_t message; // writing buffer to send to server + // Capture patch + qboolean capturedemo; + } client_static_t; extern client_static_t cls; Index: WinQuake/gl_screen.c =================================================================== RCS file: /cvsroot/quakecapture/quake1capture/WinQuake/gl_screen.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -c -r1.1.1.1 -r1.2 *** WinQuake/gl_screen.c 1 Aug 2003 01:35:29 -0000 1.1.1.1 --- WinQuake/gl_screen.c 21 Aug 2003 01:12:25 -0000 1.2 *************** *** 918,923 **** --- 918,926 ---- V_UpdatePalette (); + // Capture patch + CapturePatch_OnUpdateScreen(); + GL_EndRendering (); } Index: WinQuake/snd_dma.c =================================================================== RCS file: /cvsroot/quakecapture/quake1capture/WinQuake/snd_dma.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -c -r1.1.1.1 -r1.2 *** WinQuake/snd_dma.c 1 Aug 2003 01:37:07 -0000 1.1.1.1 --- WinQuake/snd_dma.c 21 Aug 2003 01:12:25 -0000 1.2 *************** *** 814,819 **** --- 814,822 ---- static int oldsamplepos; int fullsamples; + // Capture patch + if (CapturePatch_GetSoundtime()) return; + fullsamples = shm->samples / shm->channels; // it is possible to miscount buffers if it has wrapped twice between *************** *** 843,848 **** --- 846,853 ---- void S_ExtraUpdate (void) { + // Capture patch + if (CapturePatch_IsActive()) return; #ifdef _WIN32 IN_Accumulate (); Index: WinQuake/snd_mix.c =================================================================== RCS file: /cvsroot/quakecapture/quake1capture/WinQuake/snd_mix.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -w -c -r1.1.1.1 -r1.2 *** WinQuake/snd_mix.c 1 Aug 2003 01:37:12 -0000 1.1.1.1 --- WinQuake/snd_mix.c 21 Aug 2003 01:12:25 -0000 1.2 *************** *** 128,133 **** --- 128,136 ---- snd_p += snd_linear_count; lpaintedtime += (snd_linear_count>>1); + + // Capture patch + CapturePatch_OnTransferStereo16(); } #ifdef _WIN32