C-Netz: Calibration/fix processing of tone levels on TX and RX side

FSK and compander levels are adjusted.

Eliminate offsets between subsequent speech chunks. This is done by
high-pass filter. An offset is not passed to the filter.

Do correct audio processing chain:
 time compress -> compressor -> scrambler / pre-emphasis -> TX
 RX -> de-scrambler / de-emphasis -> expander -> time expand
This commit is contained in:
Andreas Eversberg
2016-05-13 08:56:26 +02:00
parent 5a9c9c7401
commit 46fa72894e
4 changed files with 83 additions and 61 deletions

View File

@@ -3,4 +3,5 @@ void dsp_init(void);
int dsp_init_sender(cnetz_t *cnetz, int measure_speed, double clock_speed[2], double noise);
void dsp_cleanup_sender(cnetz_t *cnetz);
void calc_clock_speed(cnetz_t *cnetz, uint64_t samples, int tx, int result);
void unshrink_speech(cnetz_t *cnetz, int16_t *speech_buffer, int count);