Changeset e31aad20
- Timestamp:
- Apr 21, 2016, 9:38:01 PM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/synth/sampler.c
ra7f398d re31aad20 60 60 if (o->source) del_aubio_source(o->source); 61 61 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)); 65 65 66 66 o->source = new_aubio_source(uri, o->samplerate, o->blocksize); … … 135 135 del_aubio_source(o->source); 136 136 } 137 if ( s->uri) AUBIO_FREE(s->uri);137 if (o->uri) AUBIO_FREE(o->uri); 138 138 del_fvec(o->source_output); 139 139 del_fmat(o->source_output_multi);
Note: See TracChangeset
for help on using the changeset viewer.