Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    ra07fdb4 rfaf2702  
    5555// more general stuff
    5656smpl_t silence_threshold = -90.;
    57 smpl_t release_drop = 10.;
    5857uint_t mix_input = 0;
    5958
     
    6463aubio_source_t *this_source = NULL;
    6564aubio_sink_t *this_sink = NULL;
    66 fvec_t *ibuf;
    67 fvec_t *obuf;
     65fvec_t *input_buffer;
     66fvec_t *output_buffer;
    6867
    6968smpl_t miditap_note = 69.;
     
    127126#endif /* HAVE_JACK */
    128127  }
    129   ibuf = new_fvec (hop_size);
    130   obuf = new_fvec (hop_size);
     128  input_buffer = new_fvec (hop_size);
     129  output_buffer = new_fvec (hop_size);
    131130
    132131}
     
    134133void examples_common_del (void)
    135134{
    136   del_fvec (ibuf);
    137   del_fvec (obuf);
     135  del_fvec (input_buffer);
     136  del_fvec (output_buffer);
    138137  aubio_cleanup ();
    139138  fflush(stderr);
     
    167166
    168167    do {
    169       aubio_source_do (this_source, ibuf, &read);
    170       process_func (ibuf, obuf);
     168      aubio_source_do (this_source, input_buffer, &read);
     169      process_func (input_buffer, output_buffer);
    171170      // print to console if verbose or no output given
    172171      if (verbose || sink_uri == NULL) {
     
    174173      }
    175174      if (this_sink) {
    176         aubio_sink_do (this_sink, obuf, hop_size);
     175        aubio_sink_do (this_sink, output_buffer, hop_size);
    177176      }
    178177      blocks++;
Note: See TracChangeset for help on using the changeset viewer.