Changes in examples/utils.c [a07fdb4:faf2702]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
ra07fdb4 rfaf2702 55 55 // more general stuff 56 56 smpl_t silence_threshold = -90.; 57 smpl_t release_drop = 10.;58 57 uint_t mix_input = 0; 59 58 … … 64 63 aubio_source_t *this_source = NULL; 65 64 aubio_sink_t *this_sink = NULL; 66 fvec_t *i buf;67 fvec_t *o buf;65 fvec_t *input_buffer; 66 fvec_t *output_buffer; 68 67 69 68 smpl_t miditap_note = 69.; … … 127 126 #endif /* HAVE_JACK */ 128 127 } 129 i buf= new_fvec (hop_size);130 o buf= new_fvec (hop_size);128 input_buffer = new_fvec (hop_size); 129 output_buffer = new_fvec (hop_size); 131 130 132 131 } … … 134 133 void examples_common_del (void) 135 134 { 136 del_fvec (i buf);137 del_fvec (o buf);135 del_fvec (input_buffer); 136 del_fvec (output_buffer); 138 137 aubio_cleanup (); 139 138 fflush(stderr); … … 167 166 168 167 do { 169 aubio_source_do (this_source, i buf, &read);170 process_func (i buf, obuf);168 aubio_source_do (this_source, input_buffer, &read); 169 process_func (input_buffer, output_buffer); 171 170 // print to console if verbose or no output given 172 171 if (verbose || sink_uri == NULL) { … … 174 173 } 175 174 if (this_sink) { 176 aubio_sink_do (this_sink, o buf, hop_size);175 aubio_sink_do (this_sink, output_buffer, hop_size); 177 176 } 178 177 blocks++;
Note: See TracChangeset
for help on using the changeset viewer.