Changeset 927f630
- Timestamp:
- Feb 10, 2013, 2:13:55 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:
- 985ec9e
- Parents:
- 25c9f9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/temporal/resampler.c
r25c9f9a r927f630 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.