a little more work on squelch
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 28 Jun 2015 04:38:28 +0000 (04:38 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 28 Jun 2015 04:38:28 +0000 (04:38 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2223 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/freedv_api.c

index 64aeb79e44f5ddde0126ddd339a7d9915ab7c27d..4be815c5cdbe5a4fed8592e2ab12688419ea6909 100644 (file)
@@ -590,7 +590,6 @@ int freedv_comprx(struct freedv *f, short speech_out[], COMP demod_in[]) {
                 if ((f->squelch_en && (f->stats.snr_est < f->snr_squelch_thresh)) || f->test_frames) {
                     for(i=0; i<f->n_speech_samples; i++)
                         speech_out[i] = 0;
-                    fprintf(stderr, "sq! ");
                 }
 
                 nout = f->n_speech_samples;
@@ -632,7 +631,6 @@ int freedv_comprx(struct freedv *f, short speech_out[], COMP demod_in[]) {
                 /* optional smoothing of codec symbols */
 
                 if (f->smooth_symbols) {
-                    float tmp;
 
                     for(i=0; i<bits_per_codec_frame; i++) {
                         rx_bits[i] += rx_bits[i+bits_per_codec_frame];
@@ -671,7 +669,6 @@ int freedv_comprx(struct freedv *f, short speech_out[], COMP demod_in[]) {
                     if (f->squelch_en && (f->stats.snr_est < f->snr_squelch_thresh)) {
                         for(i=0; i<f->n_speech_samples; i++)
                             speech_out[i] = 0; 
-                        fprintf(stderr, "sq! ");
                     }
                     speech_out += codec2_samples_per_frame(f->codec2);
                 }