diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2017-10-09 20:49:14 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2017-10-22 19:23:08 +0200 |
commit | b32e0ab6025a025850dc0079fa6596a96d7295a6 (patch) | |
tree | 199098e532a80417d5a3a18e80172280ccb84cad /src/common/sound.h | |
parent | f7a0e4622bed9551bb0999d3c54bb69249065d38 (diff) |
Implementation of RX level squelch (for A-Netz and B-Netz)
Use -S <dB> for setting RF level or use -S auto for auto level.
When squelch closes, audio is muted. If squelch is closed for some
seconds (depending on network), call is released. (RF loss condition)
The previous loss detection has been removed
Diffstat (limited to 'src/common/sound.h')
-rw-r--r-- | src/common/sound.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sound.h b/src/common/sound.h index f5ac621..71293c0 100644 --- a/src/common/sound.h +++ b/src/common/sound.h @@ -5,6 +5,6 @@ void *sound_open(const char *audiodev, double *tx_frequency, double *rx_frequenc int sound_start(void *inst); void sound_close(void *inst); int sound_write(void *inst, sample_t **samples, uint8_t **power, int num, enum paging_signal *paging_signal, int *on, int channels); -int sound_read(void *inst, sample_t **samples, int num, int channels); +int sound_read(void *inst, sample_t **samples, int num, int channels, double *rf_level_db); int sound_get_tosend(void *inst, int latspl); |