Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    rfaf2702 ra07fdb4  
    5555// more general stuff
    5656smpl_t silence_threshold = -90.;
     57smpl_t release_drop = 10.;
    5758uint_t mix_input = 0;
    5859
     
    6364aubio_source_t *this_source = NULL;
    6465aubio_sink_t *this_sink = NULL;
    65 fvec_t *input_buffer;
    66 fvec_t *output_buffer;
     66fvec_t *ibuf;
     67fvec_t *obuf;
    6768
    6869smpl_t miditap_note = 69.;
     
    126127#endif /* HAVE_JACK */
    127128  }
    128   input_buffer = new_fvec (hop_size);
    129   output_buffer = new_fvec (hop_size);
     129  ibuf = new_fvec (hop_size);
     130  obuf = new_fvec (hop_size);
    130131
    131132}
     
    133134void examples_common_del (void)
    134135{
    135   del_fvec (input_buffer);
    136   del_fvec (output_buffer);
     136  del_fvec (ibuf);
     137  del_fvec (obuf);
    137138  aubio_cleanup ();
    138139  fflush(stderr);
     
    166167
    167168    do {
    168       aubio_source_do (this_source, input_buffer, &read);
    169       process_func (input_buffer, output_buffer);
     169      aubio_source_do (this_source, ibuf, &read);
     170      process_func (ibuf, obuf);
    170171      // print to console if verbose or no output given
    171172      if (verbose || sink_uri == NULL) {
     
    173174      }
    174175      if (this_sink) {
    175         aubio_sink_do (this_sink, output_buffer, hop_size);
     176        aubio_sink_do (this_sink, obuf, hop_size);
    176177      }
    177178      blocks++;
Note: See TracChangeset for help on using the changeset viewer.