aboutsummaryrefslogtreecommitdiffstats
path: root/src/anetz/anetz.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-08 11:22:24 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:00:54 +0100
commitbf0abd627d42a6603cd8c98442539eb7c779615c (patch)
tree5f95d3a22a52b7e7bb674dd798630a927e961a9b /src/anetz/anetz.c
parentd28467c1253e34114b40ac0cec7e461a8cc270fb (diff)
A-Netz: Option to set gain of paging tones
Diffstat (limited to 'src/anetz/anetz.c')
-rw-r--r--src/anetz/anetz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/anetz/anetz.c b/src/anetz/anetz.c
index 539edf7..77493f7 100644
--- a/src/anetz/anetz.c
+++ b/src/anetz/anetz.c
@@ -168,7 +168,7 @@ static void anetz_timeout(struct timer *timer);
static void anetz_go_idle(anetz_t *anetz);
/* Create transceiver instance and link to a list. */
-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)
{
anetz_t *anetz;
int rc;
@@ -194,7 +194,7 @@ int anetz_create(int kanal, const char *audiodev, int samplerate, double rx_gain
}
/* init audio processing */
- rc = dsp_init_sender(anetz, page_sequence);
+ rc = dsp_init_sender(anetz, page_gain, page_sequence);
if (rc < 0) {
PDEBUG(DANETZ, DEBUG_ERROR, "Failed to init signal processing!\n");
goto error;