Added debug code to FreeDV API.

This commit is contained in:
Graham Haddock 2015-01-30 11:25:20 -06:00
parent 1f92b51e61
commit 5c7ea0183c
2 changed files with 6 additions and 2 deletions

View file

@ -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<nin_prev; i++)

View file

@ -0,0 +1,4 @@
CODEC2_FREEDV/codebook.d: ../CODEC2_FREEDV/codebook.c \
../CODEC2_FREEDV/defines.h
../CODEC2_FREEDV/defines.h: