comparison tools/mod2wav.c @ 2410:bc05bcfc4598

Add a C file with the generic BSD license text and a function for printing it out, for use in the tools.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jan 2020 22:26:24 +0200
parents 60e119262c67
children aacf3bd1cceb
comparison
equal deleted inserted replaced
2409:1f26fd82735a 2410:bc05bcfc4598
63 63
64 64
65 static const DMOptArg optList[] = 65 static const DMOptArg optList[] =
66 { 66 {
67 { 0, '?', "help" , "Show this help", OPT_NONE }, 67 { 0, '?', "help" , "Show this help", OPT_NONE },
68 { 1, 0, "license" , "Print out this program's license agreement", OPT_NONE },
68 { 2, 'v', "verbose" , "Be more verbose", OPT_NONE }, 69 { 2, 'v', "verbose" , "Be more verbose", OPT_NONE },
69 70
70 { 10, '1', "16bit" , "16-bit output", OPT_NONE }, 71 { 10, '1', "16bit" , "16-bit output", OPT_NONE },
71 { 12, '8', "8bit" , "8-bit output", OPT_NONE }, 72 { 12, '8', "8bit" , "8-bit output", OPT_NONE },
72 { 14, 'm', "mono" , "Mono output", OPT_NONE }, 73 { 14, 'm', "mono" , "Mono output", OPT_NONE },
94 95
95 switch (optN) 96 switch (optN)
96 { 97 {
97 case 0: 98 case 0:
98 argShowHelp(); 99 argShowHelp();
100 exit(0);
101 break;
102
103 case 1:
104 dmPrintLicense(stdout);
99 exit(0); 105 exit(0);
100 break; 106 break;
101 107
102 case 2: 108 case 2:
103 dmVerbosity++; 109 dmVerbosity++;