diff -Nurd -x'*~' flite-2.1-release.orig/src/audio/auserver.c flite-2.1-release/src/audio/auserver.c --- flite-2.1-release.orig/src/audio/auserver.c 2017-10-21 10:01:07.000000000 -0400 +++ flite-2.1-release/src/audio/auserver.c 2018-01-16 00:12:53.000000000 -0500 @@ -67,9 +67,11 @@ int q,i,n,r; unsigned char bytes[CST_AUDIOBUFFSIZE]; short shorts[CST_AUDIOBUFFSIZE]; +#ifdef DEBUG cst_file fff; fff = cst_fopen("/tmp/awb.wav",CST_OPEN_WRITE|CST_OPEN_BINARY); +#endif if ((audio_device = audio_open(header->sample_rate,1, (header->encoding == CST_SND_SHORT) ? @@ -116,7 +118,9 @@ for (q=r; q > 0; q-=n) { n = audio_write(audio_device,shorts,q); +#ifdef DEBUG cst_fwrite(fff,shorts,2,q); +#endif if (n <= 0) { audio_close(audio_device); @@ -125,7 +129,9 @@ } } audio_close(audio_device); +#ifdef DEBUG cst_fclose(fff); +#endif return CST_OK_FORMAT;