aboutsummaryrefslogtreecommitdiffstats
path: root/src/anetz/anetz.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/anetz/anetz.h')
-rw-r--r--src/anetz/anetz.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/anetz/anetz.h b/src/anetz/anetz.h
index ed5c4d5..a464db3 100644
--- a/src/anetz/anetz.h
+++ b/src/anetz/anetz.h
@@ -34,6 +34,7 @@ typedef struct anetz {
int tone_count; /* how long has that tone been detected */
double tone_phaseshift256; /* how much the phase of sine wave changes per sample */
double tone_phase256; /* current phase */
+ double page_gain; /* factor to raise the paging tones */
int page_sequence; /* if set, use paging tones in sequence rather than parallel */
double paging_phaseshift256[4];/* how much the phase of sine wave changes per sample */
double paging_phase256[4]; /* current phase */
@@ -45,7 +46,7 @@ typedef struct anetz {
double anetz_kanal2freq(int kanal, int unterband);
int anetz_init(void);
-int anetz_create(int kanal, const char *audiodev, int samplerate, double rx_gain, int page_sequence, int pre_emphasis, int de_emphasis, const char *write_rx_wave, const char *write_tx_wave, const char *read_rx_wave, int loopback, double loss_volume);
+int anetz_create(int kanal, const char *audiodev, int samplerate, double rx_gain, double page_gain, int page_sequence, int pre_emphasis, int de_emphasis, const char *write_rx_wave, const char *write_tx_wave, const char *read_rx_wave, int loopback, double loss_volume);
void anetz_destroy(sender_t *sender);
void anetz_loss_indication(anetz_t *anetz);
void anetz_receive_tone(anetz_t *anetz, int bit);