Changeset 4bc10e2 for examples/utils.c
- Timestamp:
- Oct 30, 2018, 12:57:10 PM (5 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.