[iortcw] 75/95: All: Fix compiling debug code for writing VoIP data

Simon McVittie smcv at debian.org
Fri Sep 8 10:42:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51
in repository iortcw.

commit 75513c99fcddecbcca14282f98b4969626f60a1d
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Mon May 29 12:14:17 2017 -0400

    All: Fix compiling debug code for writing VoIP data
---
 MP/code/client/cl_parse.c | 4 ++--
 SP/code/client/cl_parse.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MP/code/client/cl_parse.c b/MP/code/client/cl_parse.c
index 9b40999..09656b9 100644
--- a/MP/code/client/cl_parse.c
+++ b/MP/code/client/cl_parse.c
@@ -931,10 +931,10 @@ void CL_ParseVoip ( msg_t *msg, qboolean ignoreData ) {
 	#if 0
 	static FILE *encio = NULL;
 	if (encio == NULL) encio = fopen("voip-incoming-encoded.bin", "wb");
-	if (encio != NULL) { fwrite(encoded, len, 1, encio); fflush(encio); }
+	if (encio != NULL) { fwrite(encoded, packetsize, 1, encio); fflush(encio); }
 	static FILE *decio = NULL;
 	if (decio == NULL) decio = fopen("voip-incoming-decoded.bin", "wb");
-	if (decio != NULL) { fwrite(decoded+written, clc.speexFrameSize*2, 1, decio); fflush(decio); }
+	if (decio != NULL) { fwrite(decoded+written, numSamples*2, 1, decio); fflush(decio); }
 	#endif
 
 	written += numSamples;
diff --git a/SP/code/client/cl_parse.c b/SP/code/client/cl_parse.c
index ecc1116..2bfad92 100644
--- a/SP/code/client/cl_parse.c
+++ b/SP/code/client/cl_parse.c
@@ -802,10 +802,10 @@ void CL_ParseVoip ( msg_t *msg, qboolean ignoreData ) {
 	#if 0
 	static FILE *encio = NULL;
 	if (encio == NULL) encio = fopen("voip-incoming-encoded.bin", "wb");
-	if (encio != NULL) { fwrite(encoded, len, 1, encio); fflush(encio); }
+	if (encio != NULL) { fwrite(encoded, packetsize, 1, encio); fflush(encio); }
 	static FILE *decio = NULL;
 	if (decio == NULL) decio = fopen("voip-incoming-decoded.bin", "wb");
-	if (decio != NULL) { fwrite(decoded+written, clc.speexFrameSize*2, 1, decio); fflush(decio); }
+	if (decio != NULL) { fwrite(decoded+written, numSamples*2, 1, decio); fflush(decio); }
 	#endif
 
 	written += numSamples;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list