Changes in examples/utils.c [a07fdb4:fef012a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
ra07fdb4 rfef012a 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++; … … 185 185 186 186 del_aubio_source (this_source); 187 del_aubio_sink (this_sink); 187 if (this_sink) 188 del_aubio_sink (this_sink); 188 189 189 190 }
Note: See TracChangeset
for help on using the changeset viewer.