Changeset fc117d0 for src/temporal/resampler.c
- Timestamp:
- Feb 11, 2013, 11:06:28 AM (12 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:
- 050a8f3
- Parents:
- 5314432 (diff), 88fc249 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/temporal/resampler.c
r5314432 rfc117d0 43 43 int error = 0; 44 44 s->stat = src_new (type, 1, &error); /* only one channel */ 45 if (error) { 46 AUBIO_ERR ("Failed creating resampler: %s\n", src_strerror (error)); 47 del_aubio_resampler(s); 48 return NULL; 49 } 45 50 s->proc = AUBIO_NEW (SRC_DATA); 46 if (error)47 AUBIO_ERR ("%s\n", src_strerror (error));48 51 s->ratio = ratio; 49 52 return s; … … 53 56 del_aubio_resampler (aubio_resampler_t * s) 54 57 { 55 src_delete (s->stat);58 if (s->stat) src_delete (s->stat); 56 59 AUBIO_FREE (s->proc); 57 60 AUBIO_FREE (s);
Note: See TracChangeset
for help on using the changeset viewer.