From 024a8842bd9c090eaab70efec77b75c8855c4ba5 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 29 May 2017 09:53:19 -0500 Subject: [PATCH] Fix compiling debug code for writing VoIP data --- code/client/cl_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c index 39682507..318c8d88 100644 --- a/code/client/cl_parse.c +++ b/code/client/cl_parse.c @@ -804,10 +804,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;