Changeset 982629c
- Timestamp:
- Jan 31, 2019, 3:24:19 AM (6 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/crepe_org, fix/ffmpeg5, master
- Children:
- b1ed6ce
- Parents:
- 65a4fb4
- Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/parse_args.h
r65a4fb4 r982629c 26 26 27 27 extern int verbose; 28 extern int quiet; 28 29 // input / output 29 30 extern int usejack; … … 128 129 #endif /* defined(PROG_HAS_ONSET) && !defined(PROG_HAS_PITCH) */ 129 130 #endif /* defined(PROG_HAS_JACK) && defined(HAVE_JACK) */ 131 " -q --quiet be quiet\n" 130 132 " -v --verbose be verbose\n" 131 133 " -h --help display this message\n" … … 142 144 { 143 145 #ifdef HAVE_GETOPT_H 144 const char *options = "hv "146 const char *options = "hvq" 145 147 "i:r:B:H:" 146 148 #ifdef PROG_HAS_JACK … … 174 176 {"help", 0, NULL, 'h'}, 175 177 {"verbose", 0, NULL, 'v'}, 178 {"quiet", 0, NULL, 'q'}, 176 179 {"input", 1, NULL, 'i'}, 177 180 {"samplerate", 1, NULL, 'r'}, … … 227 230 verbose = 1; 228 231 break; 232 case 'q': /* quiet */ 233 quiet = 1; 234 break; 229 235 case 'j': 230 236 usejack = 1; -
examples/utils.c
r65a4fb4 r982629c 33 33 34 34 int verbose = 0; 35 int quiet = 0; 35 36 int usejack = 0; 36 37 // input / output … … 170 171 process_func (input_buffer, output_buffer); 171 172 // print to console if verbose or no output given 172 if ( verbose || sink_uri == NULL) {173 if ((verbose || sink_uri == NULL) && !quiet) { 173 174 print(); 174 175 }
Note: See TracChangeset
for help on using the changeset viewer.