- Timestamp:
- Oct 30, 2018, 12:57:10 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 81abf91, 9b23815e, ed596f7
- Parents:
- 357f81e (diff), cefa29d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/parse_args.h
r357f81e r4bc10e2 66 66 extern int blocks; 67 67 68 extern fvec_t *i buf;69 extern fvec_t *o buf;68 extern fvec_t *input_buffer; 69 extern fvec_t *output_buffer; 70 70 71 71 const char *prog_name; … … 212 212 }; 213 213 #endif /* HAVE_GETOPT_H */ 214 prog_name = argv[0];214 // better safe than sorry 215 215 if (argc < 1) { 216 216 usage (stderr, 1); 217 return -1;218 }217 } 218 prog_name = argv[0]; 219 219 #ifdef HAVE_GETOPT_H 220 220 do { -
examples/utils.c
r357f81e r4bc10e2 64 64 aubio_source_t *this_source = NULL; 65 65 aubio_sink_t *this_sink = NULL; 66 fvec_t *i buf;67 fvec_t *o buf;66 fvec_t *input_buffer; 67 fvec_t *output_buffer; 68 68 69 69 smpl_t miditap_note = 69.; … … 127 127 #endif /* HAVE_JACK */ 128 128 } 129 i buf= new_fvec (hop_size);130 o buf= new_fvec (hop_size);129 input_buffer = new_fvec (hop_size); 130 output_buffer = new_fvec (hop_size); 131 131 132 132 } … … 134 134 void examples_common_del (void) 135 135 { 136 del_fvec (i buf);137 del_fvec (o buf);136 del_fvec (input_buffer); 137 del_fvec (output_buffer); 138 138 aubio_cleanup (); 139 139 fflush(stderr); … … 167 167 168 168 do { 169 aubio_source_do (this_source, i buf, &read);170 process_func (i buf, obuf);169 aubio_source_do (this_source, input_buffer, &read); 170 process_func (input_buffer, output_buffer); 171 171 // print to console if verbose or no output given 172 172 if (verbose || sink_uri == NULL) { … … 174 174 } 175 175 if (this_sink) { 176 aubio_sink_do (this_sink, o buf, hop_size);176 aubio_sink_do (this_sink, output_buffer, hop_size); 177 177 } 178 178 blocks++;
Note: See TracChangeset
for help on using the changeset viewer.