mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-01-28 10:54:18 +01:00
Added debug code to FreeDV API.
This commit is contained in:
parent
1f92b51e61
commit
5c7ea0183c
|
|
@ -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++)
|
||||
|
|
|
|||
4
DSP_API/Release/CODEC2_FREEDV/codebook.d
Normal file
4
DSP_API/Release/CODEC2_FREEDV/codebook.d
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
CODEC2_FREEDV/codebook.d: ../CODEC2_FREEDV/codebook.c \
|
||||
../CODEC2_FREEDV/defines.h
|
||||
|
||||
../CODEC2_FREEDV/defines.h:
|
||||
Loading…
Reference in a new issue