r1381 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jun 8 04:24:43 EDT 2008


Author: icculus
Date: 2008-06-08 04:24:38 -0400 (Sun, 08 Jun 2008)
New Revision: 1381

Modified:
   trunk/code/client/cl_main.c
Log:
VoIP: Don't lose gain for good if using VAD on disconnect.

This temporarily disables VAD so the system can clean up recording state.


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2008-06-08 08:23:55 UTC (rev 1380)
+++ trunk/code/client/cl_main.c	2008-06-08 08:24:38 UTC (rev 1381)
@@ -1155,8 +1155,12 @@
 
 #if USE_VOIP
 	if (cl_voipSend->integer) {
+		int tmp = cl_voipUseVAD->integer;
+		cl_voipUseVAD->integer = 0;  // disable this for a moment.
+		clc.voipOutgoingDataSize = 0;  // dump any pending VoIP transmission.
 		Cvar_Set("cl_voipSend", "0");
 		CL_CaptureVoip();  // clean up any state...
+		cl_voipUseVAD->integer = tmp;
 	}
 
 	if (clc.speexInitialized) {




More information about the quake3-commits mailing list