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