Skip to content

Commit

Permalink
Fix compiling debug code for writing VoIP data
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed May 29, 2017
1 parent bc2f455 commit 024a884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/client/cl_parse.c
Expand Up @@ -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;
Expand Down

0 comments on commit 024a884

Please sign in to comment.