Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio output via stdout and UDP #440

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from
Open
Prev Previous commit
Add missing text_color_init to test programs
  • Loading branch information
ars-ka0s committed Sep 25, 2023
commit 6c62d30416c8d6934136a9dad0a09dfb5e5d054b
1 change: 1 addition & 0 deletions src/aprs_tt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2078,6 +2078,7 @@ static void check_result (void)

int main (int argc, char *argv[])
{
text_color_init (1, 0);
aprs_tt_init (NULL, 0);

error_count = 0;
Expand Down
2 changes: 2 additions & 0 deletions src/ax25_pad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,8 @@ int main ()
strcpy (addrs[1], "WB2OSZ-15");
num_addr = 2;

text_color_init (1, 0);

/* U frame */

for (ftype = frame_type_U_SABME; ftype <= frame_type_U_TEST; ftype++) {
Expand Down
1 change: 1 addition & 0 deletions src/digipeater.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ int main (int argc, char *argv[])
strlcpy(mycall, "WB2OSZ-9", sizeof(mycall));

dedupe_init (4);
text_color_init (1, 0);

/*
* Compile the patterns.
Expand Down
1 change: 1 addition & 0 deletions src/dtmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ int main ()
my_audio_config.chan_medium[c] = MEDIUM_RADIO;
my_audio_config.achan[c].dtmf_decode = DTMF_DECODE_ON;

text_color_init (1, 0);
dtmf_init(&my_audio_config, 50);

text_color_set(DW_COLOR_INFO);
Expand Down
1 change: 1 addition & 0 deletions src/encode_aprs.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ int main (int argc, char *argv[])
char result[100];
int errors = 0;

text_color_init (1, 0);

/*********** Position ***********/

Expand Down
3 changes: 2 additions & 1 deletion src/fx25_rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static int fx25_test_count = 0;

int main ()
{
text_color_init(1, 0);
fx25_init(3);

for (int i = CTAG_MIN; i <= CTAG_MAX; i++) {
Expand Down Expand Up @@ -480,4 +481,4 @@ static int my_unstuff (int chan, int subchan, int slice, unsigned char * restric

} // my_unstuff

// end fx25_rec.c
// end fx25_rec.c
3 changes: 2 additions & 1 deletion src/fx25_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ static unsigned char preload[] = {

int main ()
{
text_color_init(1, 0);
text_color_set(DW_COLOR_ERROR);
dw_printf("fxsend - FX.25 unit test.\n");
dw_printf("This generates 11 files named fx01.dat, fx02.dat, ..., fx0b.dat\n");
Expand Down Expand Up @@ -333,4 +334,4 @@ static int stuff_it (unsigned char *in, int ilen, unsigned char *out, int osize)

} // end stuff_it

// end fx25_send.c
// end fx25_send.c
2 changes: 2 additions & 0 deletions src/gen_packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ int main(int argc, char **argv)

strlcpy (output_file, "", sizeof(output_file));

text_color_init (1, 0);

/*
* Parse the command line options.
*/
Expand Down
4 changes: 3 additions & 1 deletion src/latlong.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,8 @@ int main (int argc, char *argv[])
double dlat, dlon;
double d, b;

text_color_init (1, 0);

/* Latitude to APRS format. */

latitude_to_str (45.25, 0, result);
Expand Down Expand Up @@ -1086,4 +1088,4 @@ int main (int argc, char *argv[])
#endif


/* end latlong.c */
/* end latlong.c */
1 change: 1 addition & 0 deletions src/pfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,7 @@ static void pftest (int test_num, char *filter, char *packet, int expected);
int main ()
{

text_color_init (1, 0);
dw_printf ("Quick test for packet filtering.\n");
dw_printf ("Some error messages are normal. Look at the final success/fail message.\n");

Expand Down
1 change: 1 addition & 0 deletions src/telemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ int main ( )
strlcpy (comment, "", sizeof(comment));


text_color_init(1, 0);
text_color_set(DW_COLOR_INFO);
dw_printf ("Unit test for telemetry decoding functions...\n");

Expand Down
1 change: 1 addition & 0 deletions src/tt_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -1782,6 +1782,7 @@ static void test_tt2text (char *buttons, char *expect_mp, char *expect_2k, char
int main (int argc, char *argv[])
{

text_color_init (1, 0);
text_color_set (DW_COLOR_INFO);
dw_printf ("Test conversions between normal text and DTMF representation.\n");
dw_printf ("Some error messages are normal. Just look for number of errors at end.\n");
Expand Down
1 change: 1 addition & 0 deletions src/xid.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ int main (int argc, char *argv[]) {
unsigned char info[40]; // Currently max of 27 but things can change.
char desc[150]; // I've seen 109.

text_color_init (1, 0);

/* parse example. */

Expand Down