diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2016-03-11 06:59:05 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2016-03-13 09:12:23 +0100 |
commit | 0dc81fe21011e813f801742e8ddb61a5212bd626 (patch) | |
tree | 6eefc6eb26dba3764f2d9722a37e1a67d9bebd15 /src/anetz/main.c | |
parent | 287b914b56d67760f6a056d065754dab0911574e (diff) |
Prepare for NMT: Fixes and improvements at common code
Diffstat (limited to 'src/anetz/main.c')
-rw-r--r-- | src/anetz/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/anetz/main.c b/src/anetz/main.c index 643c874..59a3f23 100644 --- a/src/anetz/main.c +++ b/src/anetz/main.c @@ -29,6 +29,8 @@ #include "../common/timer.h" #include "../common/call.h" #include "../common/mncc_sock.h" +#include "../common/freiton.h" +#include "../common/besetztton.h" #include "anetz.h" #include "dsp.h" #include "image.h" @@ -39,7 +41,7 @@ double lossdetect = 0; void print_help(const char *arg0) { - print_help_common(arg0); + print_help_common(arg0, ""); /* - - */ printf(" -P --page-sequence 0 | <ms>\n"); printf(" Cycle paging tones, rather than sending simultaniously.\n"); @@ -96,6 +98,10 @@ int main(int argc, char *argv[]) int skip_args; const char *station_id = ""; + /* init common tones */ + init_freiton(); + init_besetzton(); + skip_args = handle_options(argc, argv); argc -= skip_args; argv += skip_args; @@ -129,7 +135,7 @@ int main(int argc, char *argv[]) } dsp_init(); anetz_init(); - rc = call_init(station_id, call_sounddev, samplerate, latency, loopback); + rc = call_init(station_id, call_sounddev, samplerate, latency, 5, loopback); if (rc < 0) { fprintf(stderr, "Failed to create call control instance. Quitting!\n"); goto fail; |