From 5c7ea0183c2deee366361c1214e0db5e8616fbd5 Mon Sep 17 00:00:00 2001 From: Graham Haddock Date: Fri, 30 Jan 2015 11:25:20 -0600 Subject: [PATCH] Added debug code to FreeDV API. --- DSP_API/CODEC2_FREEDV/freedv_api.c | 4 ++-- DSP_API/Release/CODEC2_FREEDV/codebook.d | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 DSP_API/Release/CODEC2_FREEDV/codebook.d diff --git a/DSP_API/CODEC2_FREEDV/freedv_api.c b/DSP_API/CODEC2_FREEDV/freedv_api.c index 8d4de0d..83ef0a1 100644 --- a/DSP_API/CODEC2_FREEDV/freedv_api.c +++ b/DSP_API/CODEC2_FREEDV/freedv_api.c @@ -305,7 +305,7 @@ int freedv_rx(struct freedv *f, short speech_out[], short demod_in[]) { fdmdv_get_demod_stats(f->fdmdv, &f->fdmdv_stats); if (f->fdmdv_stats.sync) { - printf("\033[97mIn sync. Pass demod_in to Codec, Codec to speech_out\n"); + // printf("\033[97mIn sync. Pass demod_in to Codec, Codec to speech_out\n"); if (reliable_sync_bit == 0) { memcpy(f->rx_bits, f->fdmdv_bits, bits_per_fdmdv_frame*sizeof(int)); nout = 0; @@ -385,7 +385,7 @@ int freedv_rx(struct freedv *f, short speech_out[], short demod_in[]) { } } /* if (sync) .... */ else { - printf("\033[97mNot in sync. Pass demod_in to speech_out\n"); + // printf("\033[97mNot in sync. Pass demod_in to speech_out\n"); /* if not in sync pass through analog samples */ /* this lets us "hear" whats going on, e.g. during tuning */ for(i=0; i