Changeset faf2702
- Timestamp:
- Oct 5, 2018, 8:51:00 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:
- c8b52ab
- Parents:
- f5b8800
- Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/parse_args.h
rf5b8800 rfaf2702 65 65 extern int blocks; 66 66 67 extern fvec_t *i buf;68 extern fvec_t *o buf;67 extern fvec_t *input_buffer; 68 extern fvec_t *output_buffer; 69 69 70 70 const char *prog_name; -
examples/utils.c
rf5b8800 rfaf2702 63 63 aubio_source_t *this_source = NULL; 64 64 aubio_sink_t *this_sink = NULL; 65 fvec_t *i buf;66 fvec_t *o buf;65 fvec_t *input_buffer; 66 fvec_t *output_buffer; 67 67 68 68 smpl_t miditap_note = 69.; … … 126 126 #endif /* HAVE_JACK */ 127 127 } 128 i buf= new_fvec (hop_size);129 o buf= new_fvec (hop_size);128 input_buffer = new_fvec (hop_size); 129 output_buffer = new_fvec (hop_size); 130 130 131 131 } … … 133 133 void examples_common_del (void) 134 134 { 135 del_fvec (i buf);136 del_fvec (o buf);135 del_fvec (input_buffer); 136 del_fvec (output_buffer); 137 137 aubio_cleanup (); 138 138 fflush(stderr); … … 166 166 167 167 do { 168 aubio_source_do (this_source, i buf, &read);169 process_func (i buf, obuf);168 aubio_source_do (this_source, input_buffer, &read); 169 process_func (input_buffer, output_buffer); 170 170 // print to console if verbose or no output given 171 171 if (verbose || sink_uri == NULL) { … … 173 173 } 174 174 if (this_sink) { 175 aubio_sink_do (this_sink, o buf, hop_size);175 aubio_sink_do (this_sink, output_buffer, hop_size); 176 176 } 177 177 blocks++;
Note: See TracChangeset
for help on using the changeset viewer.