Changeset e31aad20


Ignore:
Timestamp:
Apr 21, 2016, 9:38:01 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
82cdc97
Parents:
a7f398d
Message:

src/synth/sampler.c: fix typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/synth/sampler.c

    ra7f398d re31aad20  
    6060  if (o->source) del_aubio_source(o->source);
    6161
    62   if (s->uri) AUBIO_FREE(s->uri);
    63   s->uri = AUBIO_ARRAY(char_t, strnlen(uri, PATH_MAX));
    64   strncpy(s->uri, uri, strnlen(uri, PATH_MAX));
     62  if (o->uri) AUBIO_FREE(o->uri);
     63  o->uri = AUBIO_ARRAY(char_t, strnlen(uri, PATH_MAX));
     64  strncpy(o->uri, uri, strnlen(uri, PATH_MAX));
    6565
    6666  o->source = new_aubio_source(uri, o->samplerate, o->blocksize);
     
    135135    del_aubio_source(o->source);
    136136  }
    137   if (s->uri) AUBIO_FREE(s->uri);
     137  if (o->uri) AUBIO_FREE(o->uri);
    138138  del_fvec(o->source_output);
    139139  del_fmat(o->source_output_multi);
Note: See TracChangeset for help on using the changeset viewer.