diff --git a/src/minimodem.c b/src/minimodem.c index 10940ce..a8d1a0c 100644 --- a/src/minimodem.c +++ b/src/minimodem.c @@ -27,6 +27,8 @@ #include #include #include +#include +#include #ifdef HAVE_CONFIG_H #include "config.h" @@ -86,6 +88,32 @@ framebits_decode_baudot( char *dataout_p, unsigned int dataout_size, } + +int tx_transmitting = 0; +int tx_leader_bits_len = 2; +int tx_trailer_bits_len = 2; + +simpleaudio *tx_sa_out; +float tx_bfsk_mark_f; +unsigned int tx_bit_nsamples; + +void +tx_stop_transmit_sighandler( int sig ) +{ + // fprintf(stderr, "alarm\n"); + + int j; + for ( j=0; j", c); unsigned int nwords; unsigned int bits[2]; nwords = framebits_encoder(bits, c); + if ( !tx_transmitting ) + { + tx_transmitting = 1; + int j; + for ( j=0; j