mirror of https://github.com/drowe67/codec2.git
fixed up some comments that clang-format had mangled
parent
83981a52bf
commit
22589d6311
|
@ -57,22 +57,28 @@
|
||||||
#include "ofdm_internal.h"
|
#include "ofdm_internal.h"
|
||||||
#include "varicode.h"
|
#include "varicode.h"
|
||||||
|
|
||||||
#define VERSION \
|
/* The API version number. The first version is 10. Increment if the API
|
||||||
15 /* The API version number. The first version \
|
changes in a way that would require changes by the API user. */
|
||||||
is 10. Increment if the API changes in a \
|
|
||||||
way that would require changes by the API \
|
#define VERSION 15
|
||||||
user. */
|
|
||||||
/*
|
/*
|
||||||
* Version 10 Initial version August 2, 2015.
|
Version 10 Initial version August 2, 2015.
|
||||||
* Version 11 September 2015
|
|
||||||
* Added: freedv_zero_total_bit_errors(), freedv_get_sync()
|
Version 11 September 2015
|
||||||
* Changed all input and output sample rates to 8000 sps. Rates
|
Added: freedv_zero_total_bit_errors(), freedv_get_sync()
|
||||||
* for FREEDV_MODE_700 and 700B were 7500. Version 12 August 2018 Added OFDM
|
Changed all input and output sample rates to 8000 sps. Rates
|
||||||
* configuration switch structure Version 13 November 2019 Removed 700 and
|
for FREEDV_MODE_700 and 700B were 7500.
|
||||||
* 700B modes Version 14 May 2020 Number of returned speech samples can vary,
|
|
||||||
* use freedv_get_n_max_speech_samples() to allocate buffers. Version 15
|
Version 12 August 2018 Added OFDM configuration switch structure
|
||||||
* December 2022 Removing rarely used DPSK support which is not needed given
|
|
||||||
* fast fading modes
|
Version 13 November 2019 Removed 700 and 700B modes
|
||||||
|
|
||||||
|
Version 14 May 2020 Number of returned speech samples can vary, use
|
||||||
|
freedv_get_n_max_speech_samples() to allocate buffers.
|
||||||
|
|
||||||
|
Version 15 December 2022 Removing rarely used DPSK support which is not
|
||||||
|
needed given fast fading modes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *ofdm_statemode[] = {"search", "trial", "synced"};
|
char *ofdm_statemode[] = {"search", "trial", "synced"};
|
||||||
|
@ -877,13 +883,17 @@ static void codec2_decode_upacked(struct freedv *f, short speech_out[],
|
||||||
with the input samples.
|
with the input samples.
|
||||||
We may squelch based on SNR.
|
We may squelch based on SNR.
|
||||||
Need to handle various codecs, and varying number of codec frames per modem
|
Need to handle various codecs, and varying number of codec frames per modem
|
||||||
frame Squelch audio if test frames are being sent Determine how many speech
|
frame.
|
||||||
samples to return, which will vary if in sync/out of sync Work with real and
|
Squelch audio if test frames are being sent.
|
||||||
complex inputs (complex wrapper) Attenuate audio on pass through Deal with 700D
|
Determine how many speech samples to return, which will vary if in
|
||||||
first frame burble, and different sync states from OFDM modes like 700D Output
|
sync/out of sync Work with real and complex inputs (complex wrapper)
|
||||||
no samples if squelched, we assume it's OK for the audio sink to run dry A FIFO
|
Attenuate audio on pass through.
|
||||||
required on output to smooth sample flow to audio sink Don't decode when we are
|
Deal with 700D first frame burble, and different sync states from OFDM
|
||||||
sending test frames
|
modes like 700D.
|
||||||
|
Output no samples if squelched, we assume it's OK for the audio sink to run
|
||||||
|
dry.
|
||||||
|
A FIFO is required on output to smooth sample flow to audio sink.
|
||||||
|
Don't decode when we are sending test frames
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue